* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	9.12.2021 	00:13:52 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	9.12.2021 	00:13:52 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	9.12.2021 	00:13:52 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	9.12.2021 	00:13:52 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	9.12.2021 	00:13:52 	lx 	(1. Application process)

  database connect time: 0.0003 seconds. 	9.12.2021 	00:13:52 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	9.12.2021 	00:13:52 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	9.12.2021 	00:13:52 	lx 	(1. Application process)


error: preference 'system/nc_server_start.json' was not found
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:542: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dprf.lua:466: in function 'preferenceFromJson'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:44: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:27>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
	1. 	9.12.2021 	00:13:53 	lx 	(1. Application process)

Tcp server 2 start check: start. 	9.12.2021 	00:13:53 	_lx_SERVER 	(1. Application process)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	00:13:53 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	9.12.2021 	00:13:54 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	9.12.2021 	00:13:54 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	9.12.2021 	00:13:54 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	9.12.2021 	00:13:54 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	9.12.2021 	00:13:54 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	9.12.2021 	00:13:54 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	9.12.2021 	00:13:54 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	9.12.2021 	00:13:54 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	9.12.2021 	00:13:54 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0131208af0, size: 400. 	9.12.2021 	00:13:54 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	00:13:54 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	9.12.2021 	00:13:54 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	00:13:54 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	9.12.2021 	00:13:54 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	9.12.2021 	00:13:54 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	9.12.2021 	00:13:54 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	9.12.2021 	00:13:54 	lx 	(4. palvelin)

All plugins have been loaded	1. 	9.12.2021 	00:13:54 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json. 	9.12.2021 	00:13:54 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	9.12.2021 	00:13:54 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	9.12.2021 	00:13:54 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	9.12.2021 	00:13:54 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	9.12.2021 	00:13:54 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	9.12.2021 	00:13:54 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	9.12.2021 	00:13:54 	lx 	(4. palvelin)

--- server started in 0.005 seconds, 2021-12-09 00:13:54, used memory 2996.0 kb ---	5. 	9.12.2021 	00:13:54 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	9.12.2021 	00:13:54 	lx 	(4. palvelin)

err: lx_pcall failed

command: 'runFrom4d'
parameter: 'printList
{"record_id":["20210702.132057.07001.so_  zzy0902b343620e706","20210629.210505.390fn.so_  zzy0902b343620e705","20210629.195425.q60i5.so_  zzy0902b343620e704","20210629.195341.7q0ay.so_  zzy0902b343620e704","20210629.195115.0e037.so_  zzy0902b343620e704","20210629.195050.ph010.so_  zzy0902b343620e704","20210629.195037.c1006.so_  zzy0902b343620e704","20210608.144519.4o001.so_  zzy01008b1ffd53d04","20210130.014800.81001.so_  zzy9f45c89aa8dedrr","20210112.183422.mo001.so_  zzy0902b343620e70d","20191003.185937.ng004.so_  zzy0902b343620e709","20190924.153556.i4001.so_  zzy0902b343620e705","20190924.131937.4n01b.so_  zzy0902b343620e708","20190418.190700.kk012.so_  zzy0d0f73b9c560905","20190418.190704.1w02b.so_  zzy0d0f73b9c560909","20190418.190038.eu00f.so_  zzy0d0f73b9c56090a","20190418.190043.k900l.so_  zzy0d0f73b9c560905","20190418.185919.0w001.so_  zzy0d0f73b9c560905","20190418.185826.fw003.so_  zzy0d0f73b9c56090a","20180419.094210.8l001.so_  zzy0d0509942557e09","20180410.131526.a7001.so_  zzy0d0509942557e05","20180327.105558.m600h.so_  zzy0d0509942557e0d","20180327.105414.re001.so_  zzy0d0509942557e0d","20180123.123527.e5007.so_  zzy0d0509942557e09","20171213.183527.pv001.so_  zzy0d0509942557e05","20170823.100549.5t001.so_  zzy00a002700000b04","20170719.150053.ef005.so_  zzy092cdb624cac303","20170719.142657.m1004.so_  zzy092cdb624cac303","20170718.170442.k4001.so_  zzy00a002700000b0a","20170705.112949.gd001.so_  zzy00a002700000b0a","20170511.230640.l2001.so_  zzy00a002700000a0c","20170125.193024.7p001.so_  zzy0d0509942557e0p","20170112.203523.j6001.so_  zzy0d0509942557e0d","20161229.132614.7x001.so_  zzy0d0509942557e05","20160831.160941.51003.so_  zzy0d0509942557e07","20160815.103325.31003.so_  zzy0d0509942557e03","20160815.102548.0g001.so_  zzy0d0509942557e03","20141111.164620.f6014.so_  zzy0001fc6c4f7a80b","20121114.112519.l0001.so_  zzy0001fc6c4f7a803","20110913.094622.47001.so_  zzy01c4bd6ee2e1b03"],"table":"so","user":"MG_Creator","database":"4d","parameter":{"options":{"gridName":"Lista","type":"Output","manyField":"so_kTbl","oneField":"so_kTbl","lineHeight":2,"footerHeight":1,"enterable":1},"columns":[{"field":"so_sales_order_id","width":50,"name":"Tunnus","enterable":1},{"field":"so_company_id","width":68,"name":"Asiakas","enterable":1,"lineForeColor":6},{"field":"so_type_","width":27,"name":"Ty.","enterable":1},{"field":"so_state","width":27,"name":"Tila","enterable":1},{"field":"so_project_id","width":46,"name":"Projekti","enterable":1},{"field":"co_name","width":115,"name":"Nimi","enterable":1,"lineForeColor":219,"lineBackColor":241,"headerForeColor":219},{"field":"so_creator_id","width":51,"name":"Lisääjä id","enterable":1},{"field":"so_employee_id","width":35,"name":"My.","enterable":1,"lineForeColor":217},{"field":"so_order_date","width":60,"name":"Tilaus pv","enterable":1,"footerValue":"/O1"},{"field":"so_customer_project","width":93,"name":"As. projekti","enterable":1},{"field":"so_customer_order_number","width":78,"name":"As. tilausnro","enterable":1},{"field":"so_mark","width":70,"name":"Merkki","enterable":1},{"field":"so_transfer_id","width":79,"name":"Siirtotunnus","enterable":1},{"field":"so_way_of_delivery","width":77,"name":"Toimitustapa","enterable":1},{"field":"so_sales_price_total","width":59,"name":"MH yht.","enterable":1,"lineForeColor":6,"headerForeColor":6,"footerValue":"==Sum"},{"field":"so_currency_id","width":26,"name":"Val.","enterable":1},{"field":"so_postcalc_date","width":73,"name":"Jälkilaskentapv","enterable":1,"lineForeColor":6,"headerForeColor":6},{"field":"so_cost_price","width":68,"name":"OK yht.","enterable":1,"lineForeColor":9,"headerForeColor":9,"footerValue":"==Sum"},{"field":"so_sales_margin","width":51,"name":"Kate yht.","format":"|2d","enterable":1,"lineForeColor":9,"headerForeColor":9,"footerValue":"==Sum"},{"field":"so_sales_margin_percentage","width":40,"name":"Kate %","format":"### ### ##0 %","enterable":1,"lineForeColor":9,"headerForeColor":9,"footerValue":"==Sum"},{"field":"so_material_cost","width":73,"name":"Mat. OK yht.","enterable":1,"lineForeColor":10,"headerForeColor":10,"footerValue":"==Sum"},{"field":"so_material_margin","width":73,"name":"Mat. kate yht.","enterable":1,"lineForeColor":10,"headerForeColor":10,"footerValue":"==Sum"},{"field":"so_material_margin_percentage","width":60,"name":"Mat. kate %","format":"### ### ##0 %","enterable":1,"lineForeColor":10,"headerForeColor":10,"footerValue":"==Sum"},{"field":"so_info","width":62,"name":"Lisätietoja","enterable":1},{"field":"so_change_id","width":168,"name":"Muutos ID","enterable":1},{"field":"so_record_id","width":337,"name":"ID","enterable":1}],"report_name":"Lista","printer":""}}'

/Users/pasi/nc/nc-server/manager/report_print.lua:15: attempt to call field 'pathLuaFolder' (a nil value)
stack traceback:
	/Users/pasi/nc/nc-server/manager/report_print.lua:15: in main chunk
	[C]: in function 'require'
	/Users/pasi/nc/nc-server/manager/4d/print_4d.lua:4: in main chunk
	[C]: in function 'require'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:47: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>
Parametri: {"record_id":["20210702.132057.07001.so_  zzy0902b343620e706","20210629.210505.390fn.so_  zzy0902b343620e705","20210629.195425.q60i5.so_  zzy0902b343620e704","20210629.195341.7q0ay.so_  zzy0902b343620e704","20210629.195115.0e037.so_  zzy0902b343620e704","20210629.195050.ph010.so_  zzy0902b343620e704","20210629.195037.c1006.so_  zzy0902b343620e704","20210608.144519.4o001.so_  zzy01008b1ffd53d04","20210130.014800.81001.so_  zzy9f45c89aa8dedrr","20210112.183422.mo001.so_  zzy0902b343620e70d","20191003.185937.ng004.so_  zzy0902b343620e709","20190924.153556.i4001.so_  zzy0902b343620e705","20190924.131937.4n01b.so_  zzy0902b343620e708","20190418.190700.kk012.so_  zzy0d0f73b9c560905","20190418.190704.1w02b.so_  zzy0d0f73b9c560909","20190418.190038.eu00f.so_  zzy0d0f73b9c56090a","20190418.19004. 	9.12.2021 	00:14:53 	_lua_ FunctionRun 	(10. tbl_ 9)

err: lx_pcall failed

command: 'runFrom4d'
parameter: 'printList
{"record_id":["20210702.132057.07001.so_  zzy0902b343620e706","20210629.210505.390fn.so_  zzy0902b343620e705","20210629.195425.q60i5.so_  zzy0902b343620e704","20210629.195341.7q0ay.so_  zzy0902b343620e704","20210629.195115.0e037.so_  zzy0902b343620e704","20210629.195050.ph010.so_  zzy0902b343620e704","20210629.195037.c1006.so_  zzy0902b343620e704","20210608.144519.4o001.so_  zzy01008b1ffd53d04","20210130.014800.81001.so_  zzy9f45c89aa8dedrr","20210112.183422.mo001.so_  zzy0902b343620e70d","20191003.185937.ng004.so_  zzy0902b343620e709","20190924.153556.i4001.so_  zzy0902b343620e705","20190924.131937.4n01b.so_  zzy0902b343620e708","20190418.190700.kk012.so_  zzy0d0f73b9c560905","20190418.190704.1w02b.so_  zzy0d0f73b9c560909","20190418.190038.eu00f.so_  zzy0d0f73b9c56090a","20190418.190043.k900l.so_  zzy0d0f73b9c560905","20190418.185919.0w001.so_  zzy0d0f73b9c560905","20190418.185826.fw003.so_  zzy0d0f73b9c56090a","20180419.094210.8l001.so_  zzy0d0509942557e09","20180410.131526.a7001.so_  zzy0d0509942557e05","20180327.105558.m600h.so_  zzy0d0509942557e0d","20180327.105414.re001.so_  zzy0d0509942557e0d","20180123.123527.e5007.so_  zzy0d0509942557e09","20171213.183527.pv001.so_  zzy0d0509942557e05","20170823.100549.5t001.so_  zzy00a002700000b04","20170719.150053.ef005.so_  zzy092cdb624cac303","20170719.142657.m1004.so_  zzy092cdb624cac303","20170718.170442.k4001.so_  zzy00a002700000b0a","20170705.112949.gd001.so_  zzy00a002700000b0a","20170511.230640.l2001.so_  zzy00a002700000a0c","20170125.193024.7p001.so_  zzy0d0509942557e0p","20170112.203523.j6001.so_  zzy0d0509942557e0d","20161229.132614.7x001.so_  zzy0d0509942557e05","20160831.160941.51003.so_  zzy0d0509942557e07","20160815.103325.31003.so_  zzy0d0509942557e03","20160815.102548.0g001.so_  zzy0d0509942557e03","20141111.164620.f6014.so_  zzy0001fc6c4f7a80b","20121114.112519.l0001.so_  zzy0001fc6c4f7a803","20110913.094622.47001.so_  zzy01c4bd6ee2e1b03"],"table":"so","user":"MG_Creator","database":"4d","parameter":{"options":{"gridName":"Lista","type":"Output","manyField":"so_kTbl","oneField":"so_kTbl","lineHeight":2,"footerHeight":1,"enterable":1},"columns":[{"field":"so_sales_order_id","width":50,"name":"Tunnus","enterable":1},{"field":"so_company_id","width":68,"name":"Asiakas","enterable":1,"lineForeColor":6},{"field":"so_type_","width":27,"name":"Ty.","enterable":1},{"field":"so_state","width":27,"name":"Tila","enterable":1},{"field":"so_project_id","width":46,"name":"Projekti","enterable":1},{"field":"co_name","width":115,"name":"Nimi","enterable":1,"lineForeColor":219,"lineBackColor":241,"headerForeColor":219},{"field":"so_creator_id","width":51,"name":"Lisääjä id","enterable":1},{"field":"so_employee_id","width":35,"name":"My.","enterable":1,"lineForeColor":217},{"field":"so_order_date","width":60,"name":"Tilaus pv","enterable":1,"footerValue":"/O1"},{"field":"so_customer_project","width":93,"name":"As. projekti","enterable":1},{"field":"so_customer_order_number","width":78,"name":"As. tilausnro","enterable":1},{"field":"so_mark","width":70,"name":"Merkki","enterable":1},{"field":"so_transfer_id","width":79,"name":"Siirtotunnus","enterable":1},{"field":"so_way_of_delivery","width":77,"name":"Toimitustapa","enterable":1},{"field":"so_sales_price_total","width":59,"name":"MH yht.","enterable":1,"lineForeColor":6,"headerForeColor":6,"footerValue":"==Sum"},{"field":"so_currency_id","width":26,"name":"Val.","enterable":1},{"field":"so_postcalc_date","width":73,"name":"Jälkilaskentapv","enterable":1,"lineForeColor":6,"headerForeColor":6},{"field":"so_cost_price","width":68,"name":"OK yht.","enterable":1,"lineForeColor":9,"headerForeColor":9,"footerValue":"==Sum"},{"field":"so_sales_margin","width":51,"name":"Kate yht.","format":"|2d","enterable":1,"lineForeColor":9,"headerForeColor":9,"footerValue":"==Sum"},{"field":"so_sales_margin_percentage","width":40,"name":"Kate %","format":"### ### ##0 %","enterable":1,"lineForeColor":9,"headerForeColor":9,"footerValue":"==Sum"},{"field":"so_material_cost","width":73,"name":"Mat. OK yht.","enterable":1,"lineForeColor":10,"headerForeColor":10,"footerValue":"==Sum"},{"field":"so_material_margin","width":73,"name":"Mat. kate yht.","enterable":1,"lineForeColor":10,"headerForeColor":10,"footerValue":"==Sum"},{"field":"so_material_margin_percentage","width":60,"name":"Mat. kate %","format":"### ### ##0 %","enterable":1,"lineForeColor":10,"headerForeColor":10,"footerValue":"==Sum"},{"field":"so_info","width":62,"name":"Lisätietoja","enterable":1},{"field":"so_change_id","width":168,"name":"Muutos ID","enterable":1},{"field":"so_record_id","width":337,"name":"ID","enterable":1}],"report_name":"Lista","printer":""}}'

/Users/pasi/nc/nc-server/manager/report_print.lua:14: attempt to call field 'load' (a nil value)
stack traceback:
	/Users/pasi/nc/nc-server/manager/report_print.lua:14: in main chunk
	[C]: in function 'require'
	/Users/pasi/nc/nc-server/manager/4d/print_4d.lua:4: in main chunk
	[C]: in function 'require'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:47: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>
Parametri: {"record_id":["20210702.132057.07001.so_  zzy0902b343620e706","20210629.210505.390fn.so_  zzy0902b343620e705","20210629.195425.q60i5.so_  zzy0902b343620e704","20210629.195341.7q0ay.so_  zzy0902b343620e704","20210629.195115.0e037.so_  zzy0902b343620e704","20210629.195050.ph010.so_  zzy0902b343620e704","20210629.195037.c1006.so_  zzy0902b343620e704","20210608.144519.4o001.so_  zzy01008b1ffd53d04","20210130.014800.81001.so_  zzy9f45c89aa8dedrr","20210112.183422.mo001.so_  zzy0902b343620e70d","20191003.185937.ng004.so_  zzy0902b343620e709","20190924.153556.i4001.so_  zzy0902b343620e705","20190924.131937.4n01b.so_  zzy0902b343620e708","20190418.190700.kk012.so_  zzy0d0f73b9c560905","20190418.190704.1w02b.so_  zzy0d0f73b9c560909","20190418.190038.eu00f.so_  zzy0d0f73b9c56090a","20190418.190043.k900l.s. 	9.12.2021 	00:18:21 	_lua_ FunctionRun 	(10. tbl_ 9)

Cairo draw version: 1.16.0. 	9.12.2021 	00:18:57 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	9.12.2021 	00:18:57 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	9.12.2021 	00:18:57 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	9.12.2021 	00:18:57 	lx 	(10. tbl_ 9)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	9.12.2021 	00:18:57 	lx 	(10. tbl_ 9)

  database connect time: 0.0004 seconds. 	9.12.2021 	00:18:57 	lx 	(10. tbl_ 9)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	9.12.2021 	00:18:57 	lx 	(10. tbl_ 9)

Cairo draw version: 1.16.0. 	9.12.2021 	00:20:52 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	9.12.2021 	00:20:56 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	9.12.2021 	00:20:56 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	9.12.2021 	00:20:56 	lx 	(10. tbl_ 9)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	9.12.2021 	00:20:56 	lx 	(10. tbl_ 9)

  database connect time: 0.0004 seconds. 	9.12.2021 	00:20:56 	lx 	(10. tbl_ 9)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	9.12.2021 	00:20:56 	lx 	(10. tbl_ 9)

Starting to stop tcp server 2, max. delay 1 seconds... 	9.12.2021 	00:24:54 	_lx_SERVER 	(11. tbl_ 10)

*** tcp close for sock 73, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	9.12.2021 	00:24:54 	lx 	(4. palvelin)

closing socket '73'	1. 	9.12.2021 	00:24:54 	lx 	(4. palvelin)

*** tcp close for sock 74, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	9.12.2021 	00:24:54 	lx 	(4. palvelin)

closing socket '74'	1. 	9.12.2021 	00:24:54 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            49368
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0	1. 	9.12.2021 	00:24:54 	lx 	(4. palvelin)

--- server stopped ---. 	9.12.2021 	00:24:54 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x0131208af0. 	9.12.2021 	00:24:54 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	00:24:54 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	00:24:58 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0146d077d0, size: 400. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)

All plugins have been loaded	1. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)

closing socket '74'	1. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)


error:    SOCKET ERROR: listen_socket:bind for port 5949 failed with error: (-1) Unknown error: -1
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/net_socket.lua:195: in function 'cleanup'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:811: in function 'listen'
	/Users/pasi/nc/nc-server/lib/server.lua:460: in function 'serverRun'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:139: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:150: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
	1. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)


***  there is another instance of this program or some other program using the port 5949  ***  	1. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)

error: server has not been started - quit-lx-server	1. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)

error:    SOCKET ERROR: listen_socket:bind for port 5949 failed with error: (-1) Unknown error: -1
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/net_socket.lua:195: in function 'cleanup'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:811: in function 'listen'
	/Users/pasi/nc/nc-server/lib/server.lua:460: in function 'serverRun'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:139: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:150: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]. 	9.12.2021 	00:25:00 	_lx_SERVER 	(4. palvelin)

error: server has not been started - quit-lx-server	1. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)

error: server has not been started - quit-lx-server. 	9.12.2021 	00:25:00 	_lx_SERVER 	(4. palvelin)

warning: -*-ERR: close socket is nil
	1. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)

warning: -*-ERR: close socket is nil
	1. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            0
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  0/0
totalBytesReceived:   0
totalBytesSent:       0	1. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)

--- server stopped ---. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x0146d077d0. 	9.12.2021 	00:25:00 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	00:25:00 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	00:25:13 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)

  database connect time: 0.0004 seconds. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x014654c730, size: 400. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)

All plugins have been loaded	1. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)

closing socket '92'	1. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)


error:    SOCKET ERROR: listen_socket:bind for port 5949 failed with error: (-1) Unknown error: -1
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/net_socket.lua:195: in function 'cleanup'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:811: in function 'listen'
	/Users/pasi/nc/nc-server/lib/server.lua:460: in function 'serverRun'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:139: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:150: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
	1. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)


***  there is another instance of this program or some other program using the port 5949  ***  	1. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)

error: server has not been started - quit-lx-server	1. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)

error:    SOCKET ERROR: listen_socket:bind for port 5949 failed with error: (-1) Unknown error: -1
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/net_socket.lua:195: in function 'cleanup'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:811: in function 'listen'
	/Users/pasi/nc/nc-server/lib/server.lua:460: in function 'serverRun'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:139: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:150: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]. 	9.12.2021 	00:25:15 	_lx_SERVER 	(4. palvelin)

error: server has not been started - quit-lx-server	1. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)

error: server has not been started - quit-lx-server. 	9.12.2021 	00:25:15 	_lx_SERVER 	(4. palvelin)

warning: -*-ERR: close socket is nil
	1. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)

warning: -*-ERR: close socket is nil
	1. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            0
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  0/0
totalBytesReceived:   0
totalBytesSent:       0	1. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)

--- server stopped ---. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x014654c730. 	9.12.2021 	00:25:15 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	00:25:15 	_lx_SERVER 	(4. palvelin)

Tcp palvelin 2 ei ole käynnissä. 	9.12.2021 	00:25:21 	_lx_SERVER 	(11. tbl_ 10)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	00:25:36 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)

  database connect time: 0.0004 seconds. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0146d3d8d0, size: 400. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)

All plugins have been loaded	1. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)

closing socket '93'	1. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)


error:    SOCKET ERROR: listen_socket:bind for port 5949 failed with error: (-1) Unknown error: -1
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/net_socket.lua:195: in function 'cleanup'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:811: in function 'listen'
	/Users/pasi/nc/nc-server/lib/server.lua:460: in function 'serverRun'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:139: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:150: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
	1. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)


***  there is another instance of this program or some other program using the port 5949  ***  	1. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)

error: server has not been started - quit-lx-server	1. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)

error:    SOCKET ERROR: listen_socket:bind for port 5949 failed with error: (-1) Unknown error: -1
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/net_socket.lua:195: in function 'cleanup'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:811: in function 'listen'
	/Users/pasi/nc/nc-server/lib/server.lua:460: in function 'serverRun'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:139: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:150: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]. 	9.12.2021 	00:25:38 	_lx_SERVER 	(4. palvelin)

error: server has not been started - quit-lx-server	1. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)

error: server has not been started - quit-lx-server. 	9.12.2021 	00:25:38 	_lx_SERVER 	(4. palvelin)

warning: -*-ERR: close socket is nil
	1. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)

warning: -*-ERR: close socket is nil
	1. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            0
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  0/0
totalBytesReceived:   0
totalBytesSent:       0	1. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)

--- server stopped ---. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x0146d3d8d0. 	9.12.2021 	00:25:38 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	00:25:38 	_lx_SERVER 	(4. palvelin)

Cairo draw version: 1.16.0. 	9.12.2021 	00:25:48 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	9.12.2021 	00:25:48 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	9.12.2021 	00:25:48 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	9.12.2021 	00:25:48 	lx 	(10. tbl_ 9)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	9.12.2021 	00:25:48 	lx 	(10. tbl_ 9)

  database connect time: 0.0003 seconds. 	9.12.2021 	00:25:48 	lx 	(10. tbl_ 9)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	9.12.2021 	00:25:48 	lx 	(10. tbl_ 9)

Cairo draw version: 1.16.0. 	9.12.2021 	00:25:48 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	9.12.2021 	00:25:48 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	9.12.2021 	00:25:48 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	9.12.2021 	00:25:48 	lx 	(10. tbl_ 9)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	9.12.2021 	00:25:48 	lx 	(10. tbl_ 9)

  database connect time: 0.0003 seconds. 	9.12.2021 	00:25:48 	lx 	(10. tbl_ 9)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	9.12.2021 	00:25:48 	lx 	(10. tbl_ 9)

Cairo draw version: 1.16.0. 	9.12.2021 	00:26:19 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	9.12.2021 	00:26:43 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	9.12.2021 	00:26:45 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	9.12.2021 	00:31:19 	lx 	(10. tbl_ 9)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	9.12.2021 	00:31:20 	lx 	(10. tbl_ 9)

  database connect time: 6.5965 seconds. 	9.12.2021 	00:31:38 	lx 	(10. tbl_ 9)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	9.12.2021 	00:32:11 	lx 	(10. tbl_ 9)

Cairo draw version: 1.16.0. 	9.12.2021 	00:33:59 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	9.12.2021 	00:33:59 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	9.12.2021 	00:33:59 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	9.12.2021 	00:33:59 	lx 	(10. tbl_ 9)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	9.12.2021 	00:33:59 	lx 	(10. tbl_ 9)

  database connect time: 0.0004 seconds. 	9.12.2021 	00:33:59 	lx 	(10. tbl_ 9)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	9.12.2021 	00:33:59 	lx 	(10. tbl_ 9)

Cairo draw version: 1.16.0. 	9.12.2021 	00:34:47 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	9.12.2021 	00:34:48 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	9.12.2021 	00:34:48 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	9.12.2021 	00:34:48 	lx 	(10. tbl_ 9)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	9.12.2021 	00:34:48 	lx 	(10. tbl_ 9)

  database connect time: 0.0004 seconds. 	9.12.2021 	00:34:48 	lx 	(10. tbl_ 9)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	9.12.2021 	00:34:48 	lx 	(10. tbl_ 9)

Cairo draw version: 1.16.0. 	9.12.2021 	00:34:58 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	9.12.2021 	00:34:58 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	9.12.2021 	00:34:58 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	9.12.2021 	00:34:58 	lx 	(10. tbl_ 9)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	9.12.2021 	00:34:58 	lx 	(10. tbl_ 9)

  database connect time: 0.0003 seconds. 	9.12.2021 	00:34:58 	lx 	(10. tbl_ 9)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	9.12.2021 	00:34:58 	lx 	(10. tbl_ 9)

Cairo draw version: 1.16.0. 	9.12.2021 	00:35:07 	lx 	(4. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	9.12.2021 	00:35:07 	lx 	(4. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	9.12.2021 	00:35:07 	lx 	(4. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	9.12.2021 	00:35:07 	lx 	(4. tbl_ 9)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	9.12.2021 	00:35:07 	lx 	(4. tbl_ 9)

  database connect time: 0.0003 seconds. 	9.12.2021 	00:35:07 	lx 	(4. tbl_ 9)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	9.12.2021 	00:35:07 	lx 	(4. tbl_ 9)

Cairo draw version: 1.16.0. 	9.12.2021 	00:35:24 	lx 	(5. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	9.12.2021 	00:35:24 	lx 	(5. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	9.12.2021 	00:35:24 	lx 	(5. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	9.12.2021 	00:35:24 	lx 	(5. tbl_ 9)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	9.12.2021 	00:35:24 	lx 	(5. tbl_ 9)

  database connect time: 0.0003 seconds. 	9.12.2021 	00:35:24 	lx 	(5. tbl_ 9)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	9.12.2021 	00:35:24 	lx 	(5. tbl_ 9)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	9.12.2021 	00:36:35 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	9.12.2021 	00:36:35 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	9.12.2021 	00:36:35 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	9.12.2021 	00:36:35 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	9.12.2021 	00:36:35 	lx 	(1. Application process)

  database connect time: 0.0002 seconds. 	9.12.2021 	00:36:35 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	9.12.2021 	00:36:35 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	9.12.2021 	00:36:35 	lx 	(1. Application process)


error: preference 'system/nc_server_start.json' was not found
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dprf.lua:466: in function 'preferenceFromJson'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:44: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:27>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
	1. 	9.12.2021 	00:36:35 	lx 	(1. Application process)

Tcp server 2 start check: start. 	9.12.2021 	00:36:35 	_lx_SERVER 	(1. Application process)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	00:36:35 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	9.12.2021 	00:36:37 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	9.12.2021 	00:36:37 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	9.12.2021 	00:36:37 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	9.12.2021 	00:36:37 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	9.12.2021 	00:36:37 	lx 	(4. palvelin)

  database connect time: 0.0003 seconds. 	9.12.2021 	00:36:37 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	9.12.2021 	00:36:37 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	9.12.2021 	00:36:37 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	9.12.2021 	00:36:37 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01237285e0, size: 400. 	9.12.2021 	00:36:37 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	00:36:37 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	9.12.2021 	00:36:37 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	00:36:37 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	9.12.2021 	00:36:37 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	9.12.2021 	00:36:37 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	9.12.2021 	00:36:37 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	9.12.2021 	00:36:37 	lx 	(4. palvelin)

All plugins have been loaded	1. 	9.12.2021 	00:36:37 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json. 	9.12.2021 	00:36:37 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	9.12.2021 	00:36:37 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	9.12.2021 	00:36:37 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	9.12.2021 	00:36:37 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	9.12.2021 	00:36:37 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	9.12.2021 	00:36:37 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	9.12.2021 	00:36:37 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-09 00:36:37, used memory 2996.4 kb ---	5. 	9.12.2021 	00:36:37 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	9.12.2021 	00:36:37 	lx 	(4. palvelin)

Cairo draw version: 1.16.0. 	9.12.2021 	00:37:23 	lx 	(8. tbl_ 7)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	9.12.2021 	00:37:23 	lx 	(8. tbl_ 7)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	9.12.2021 	00:37:23 	lx 	(8. tbl_ 7)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	9.12.2021 	00:37:23 	lx 	(8. tbl_ 7)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	9.12.2021 	00:37:23 	lx 	(8. tbl_ 7)

  database connect time: 0.0003 seconds. 	9.12.2021 	00:37:23 	lx 	(8. tbl_ 7)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	9.12.2021 	00:37:23 	lx 	(8. tbl_ 7)

Cairo draw version: 1.16.0. 	9.12.2021 	00:41:29 	lx 	(8. tbl_ 7)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	9.12.2021 	00:41:29 	lx 	(8. tbl_ 7)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	9.12.2021 	00:41:29 	lx 	(8. tbl_ 7)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	9.12.2021 	00:41:29 	lx 	(8. tbl_ 7)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	9.12.2021 	00:41:29 	lx 	(8. tbl_ 7)

  database connect time: 0.0002 seconds. 	9.12.2021 	00:41:29 	lx 	(8. tbl_ 7)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	9.12.2021 	00:41:29 	lx 	(8. tbl_ 7)

Semaforia ei ole olemassa: $_mb_Quit. 	9.12.2021 	00:43:07 	_sem CLEAR 	(3. $InfoLog)

Ei avointa semaphorea ’$_mb_Quit’ ( _sem_tSemaphoreList: ). 	9.12.2021 	00:43:09 	_sem CLEAR 	(3. $InfoLog)

Semaforia ei ole olemassa: $_mb_Quit. 	9.12.2021 	00:43:13 	_sem CLEAR 	(3. $InfoLog)

Ei avointa semaphorea ’$_mb_Quit’ ( _sem_tSemaphoreList: ). 	9.12.2021 	00:43:13 	_sem CLEAR 	(3. $InfoLog)

Cairo draw version: 1.16.0. 	9.12.2021 	00:44:43 	lx 	(8. tbl_ 7)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	9.12.2021 	00:44:43 	lx 	(8. tbl_ 7)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	9.12.2021 	00:44:43 	lx 	(8. tbl_ 7)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	9.12.2021 	00:44:43 	lx 	(8. tbl_ 7)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	9.12.2021 	00:44:43 	lx 	(8. tbl_ 7)

  database connect time: 0.0004 seconds. 	9.12.2021 	00:44:43 	lx 	(8. tbl_ 7)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	9.12.2021 	00:44:43 	lx 	(8. tbl_ 7)

Cairo draw version: 1.16.0. 	9.12.2021 	00:45:08 	lx 	(8. tbl_ 7)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	9.12.2021 	00:45:08 	lx 	(8. tbl_ 7)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	9.12.2021 	00:45:08 	lx 	(8. tbl_ 7)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	9.12.2021 	00:45:08 	lx 	(8. tbl_ 7)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	9.12.2021 	00:45:08 	lx 	(8. tbl_ 7)

  database connect time: 0.0003 seconds. 	9.12.2021 	00:45:08 	lx 	(8. tbl_ 7)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	9.12.2021 	00:45:08 	lx 	(8. tbl_ 7)

Cairo draw version: 1.16.0. 	9.12.2021 	00:45:59 	lx 	(8. tbl_ 7)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	9.12.2021 	00:46:25 	lx 	(8. tbl_ 7)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	9.12.2021 	00:46:27 	lx 	(8. tbl_ 7)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	9.12.2021 	00:46:27 	lx 	(8. tbl_ 7)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	9.12.2021 	00:46:27 	lx 	(8. tbl_ 7)

  database connect time: 0.0006 seconds. 	9.12.2021 	00:46:27 	lx 	(8. tbl_ 7)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	9.12.2021 	00:46:27 	lx 	(8. tbl_ 7)

*** tcp close for sock 73, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	9.12.2021 	00:47:46 	lx 	(4. palvelin)

closing socket '73'	1. 	9.12.2021 	00:47:46 	lx 	(4. palvelin)

*** tcp close for sock 74, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	9.12.2021 	00:47:46 	lx 	(4. palvelin)

closing socket '74'	1. 	9.12.2021 	00:47:46 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            47992
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0	1. 	9.12.2021 	00:47:46 	lx 	(4. palvelin)

--- server stopped ---. 	9.12.2021 	00:47:46 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x01237285e0. 	9.12.2021 	00:47:46 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	9.12.2021 	00:47:58 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	9.12.2021 	00:47:58 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	9.12.2021 	00:47:58 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	9.12.2021 	00:47:58 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	9.12.2021 	00:47:58 	lx 	(1. Application process)

  database connect time: 0.0002 seconds. 	9.12.2021 	00:47:58 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	9.12.2021 	00:47:58 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	9.12.2021 	00:47:58 	lx 	(1. Application process)


error: preference 'system/nc_server_start.json' was not found
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dprf.lua:466: in function 'preferenceFromJson'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:44: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:27>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
	1. 	9.12.2021 	00:47:58 	lx 	(1. Application process)

Tcp server 2 start check: start. 	9.12.2021 	00:47:58 	_lx_SERVER 	(1. Application process)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	00:47:58 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	9.12.2021 	00:48:00 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'	1. 	9.12.2021 	00:48:00 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'	1. 	9.12.2021 	00:48:00 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	9.12.2021 	00:48:00 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'	1. 	9.12.2021 	00:48:00 	lx 	(4. palvelin)

  database connect time: 0.0003 seconds. 	9.12.2021 	00:48:00 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'	1. 	9.12.2021 	00:48:00 	lx 	(4. palvelin)


* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
	1. 	9.12.2021 	00:48:00 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'	1. 	9.12.2021 	00:48:00 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0133171d80, size: 400. 	9.12.2021 	00:48:00 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	00:48:00 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'	1. 	9.12.2021 	00:48:00 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	00:48:00 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker	1. 	9.12.2021 	00:48:00 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker	1. 	9.12.2021 	00:48:00 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker	1. 	9.12.2021 	00:48:00 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker	1. 	9.12.2021 	00:48:00 	lx 	(4. palvelin)

All plugins have been loaded	1. 	9.12.2021 	00:48:00 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json. 	9.12.2021 	00:48:00 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''	1. 	9.12.2021 	00:48:00 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''	1. 	9.12.2021 	00:48:00 	lx 	(4. palvelin)

Mac address: f84d896921dc	1. 	9.12.2021 	00:48:00 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem	1. 	9.12.2021 	00:48:00 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/	1. 	9.12.2021 	00:48:00 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/	1. 	9.12.2021 	00:48:00 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-09 00:48:00, used memory 2992.4 kb ---	5. 	9.12.2021 	00:48:00 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi	1. 	9.12.2021 	00:48:00 	lx 	(4. palvelin)

Cairo draw version: 1.16.0. 	9.12.2021 	00:53:20 	lx 	(8. tbl_ 7)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json' 	 1. 	9.12.2021 	00:53:20 	lx 	(8. tbl_ 7)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json' 	 1. 	9.12.2021 	00:53:20 	lx 	(8. tbl_ 7)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json' 	 1. 	9.12.2021 	00:53:20 	lx 	(8. tbl_ 7)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo' 	 1. 	9.12.2021 	00:53:20 	lx 	(8. tbl_ 7)

  database connect time: 0.0003 seconds. 	9.12.2021 	00:53:20 	lx 	(8. tbl_ 7)

* connect: connection changed to 'postgre-demo/fi_demo' 	 1. 	9.12.2021 	00:53:20 	lx 	(8. tbl_ 7)

Cairo draw version: 1.16.0. 	9.12.2021 	00:55:00 	lx 	(8. tbl_ 7)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json' 	 1. 	9.12.2021 	00:55:00 	lx 	(8. tbl_ 7)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json' 	 1. 	9.12.2021 	00:55:00 	lx 	(8. tbl_ 7)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json' 	 1. 	9.12.2021 	00:55:00 	lx 	(8. tbl_ 7)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo' 	 1. 	9.12.2021 	00:55:00 	lx 	(8. tbl_ 7)

  database connect time: 0.0003 seconds. 	9.12.2021 	00:55:00 	lx 	(8. tbl_ 7)

* connect: connection changed to 'postgre-demo/fi_demo' 	 1. 	9.12.2021 	00:55:00 	lx 	(8. tbl_ 7)

Cairo draw version: 1.16.0. 	9.12.2021 	00:55:18 	lx 	(8. tbl_ 7)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json' 	 1. 	9.12.2021 	00:55:18 	lx 	(8. tbl_ 7)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json' 	 1. 	9.12.2021 	00:55:18 	lx 	(8. tbl_ 7)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json' 	 1. 	9.12.2021 	00:55:18 	lx 	(8. tbl_ 7)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo' 	 1. 	9.12.2021 	00:55:18 	lx 	(8. tbl_ 7)

  database connect time: 0.0003 seconds. 	9.12.2021 	00:55:18 	lx 	(8. tbl_ 7)

* connect: connection changed to 'postgre-demo/fi_demo' 	 1. 	9.12.2021 	00:55:18 	lx 	(8. tbl_ 7)

Cairo draw version: 1.16.0. 	9.12.2021 	00:56:29 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json' 	 1. 	9.12.2021 	00:56:44 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json' 	 1. 	9.12.2021 	00:56:44 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json' 	 1. 	9.12.2021 	00:56:44 	lx 	(10. tbl_ 9)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo' 	 1. 	9.12.2021 	00:56:44 	lx 	(10. tbl_ 9)

  database connect time: 0.0004 seconds. 	9.12.2021 	00:56:44 	lx 	(10. tbl_ 9)

* connect: connection changed to 'postgre-demo/fi_demo' 	 1. 	9.12.2021 	00:56:44 	lx 	(10. tbl_ 9)

Cairo draw version: 1.16.0. 	9.12.2021 	00:58:22 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	00:58:22 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	00:58:22 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	00:58:22 	lx 	(10. tbl_ 9)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	00:58:22 	lx 	(10. tbl_ 9)

  database connect time: 0.0003 seconds. 	9.12.2021 	00:58:22 	lx 	(10. tbl_ 9)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	00:58:22 	lx 	(10. tbl_ 9)

Cairo draw version: 1.16.0. 	9.12.2021 	00:58:41 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json' 	 1. 	9.12.2021 	00:58:41 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json' 	 1. 	9.12.2021 	00:58:41 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json' 	 1. 	9.12.2021 	00:58:41 	lx 	(10. tbl_ 9)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo' 	 1. 	9.12.2021 	00:58:41 	lx 	(10. tbl_ 9)

  database connect time: 0.0003 seconds. 	9.12.2021 	00:58:41 	lx 	(10. tbl_ 9)

* connect: connection changed to 'postgre-demo/fi_demo' 	 1. 	9.12.2021 	00:58:41 	lx 	(10. tbl_ 9)

Cairo draw version: 1.16.0. 	9.12.2021 	00:59:15 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	00:59:15 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	00:59:15 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	00:59:15 	lx 	(10. tbl_ 9)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	00:59:15 	lx 	(10. tbl_ 9)

  database connect time: 0.0003 seconds. 	9.12.2021 	00:59:15 	lx 	(10. tbl_ 9)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	00:59:15 	lx 	(10. tbl_ 9)

Cairo draw version: 1.16.0. 	9.12.2021 	00:59:49 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	00:59:49 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	00:59:49 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	00:59:49 	lx 	(10. tbl_ 9)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	00:59:49 	lx 	(10. tbl_ 9)

  database connect time: 0.0003 seconds. 	9.12.2021 	00:59:49 	lx 	(10. tbl_ 9)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	00:59:49 	lx 	(10. tbl_ 9)

Cairo draw version: 1.16.0. 	9.12.2021 	01:00:38 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	01:00:38 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	01:00:38 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	01:00:38 	lx 	(10. tbl_ 9)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	01:00:38 	lx 	(10. tbl_ 9)

  database connect time: 0.0003 seconds. 	9.12.2021 	01:00:38 	lx 	(10. tbl_ 9)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	01:00:38 	lx 	(10. tbl_ 9)


1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-09 01:04:40
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 502
Content-Uncompressed-Length: 584

LZ4. 	9.12.2021 	01:04:40 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	9.12.2021 	01:04:40 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'	1. 	9.12.2021 	01:04:40 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'	1. 	9.12.2021 	01:04:40 	lx 	(4. palvelin)

  database connect time: 0.0000 seconds. 	9.12.2021 	01:04:40 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'	1. 	9.12.2021 	01:04:40 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	9.12.2021 	01:04:40 	lx 	(4. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	9.12.2021 	01:04:40 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	01:04:40 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	01:04:40 	_lx_ExecuteSqlNew 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 772 bytes ***	1. 	9.12.2021 	01:07:57 	lx 	(4. palvelin)

closing socket '87'	1. 	9.12.2021 	01:07:57 	lx 	(4. palvelin)

Cairo draw version: 1.16.0. 	9.12.2021 	01:16:02 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json' 	 1. 	9.12.2021 	01:16:02 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json' 	 1. 	9.12.2021 	01:16:02 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json' 	 1. 	9.12.2021 	01:16:02 	lx 	(10. tbl_ 9)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo' 	 1. 	9.12.2021 	01:16:02 	lx 	(10. tbl_ 9)

  database connect time: 0.0003 seconds. 	9.12.2021 	01:16:02 	lx 	(10. tbl_ 9)

* connect: connection changed to 'postgre-demo/fi_demo' 	 1. 	9.12.2021 	01:16:02 	lx 	(10. tbl_ 9)

Cairo draw version: 1.16.0. 	9.12.2021 	01:16:21 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	01:16:21 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	01:16:21 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	01:16:21 	lx 	(10. tbl_ 9)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	01:16:21 	lx 	(10. tbl_ 9)

  database connect time: 0.0004 seconds. 	9.12.2021 	01:16:21 	lx 	(10. tbl_ 9)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	01:16:21 	lx 	(10. tbl_ 9)

Cairo draw version: 1.16.0. 	9.12.2021 	01:16:22 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	01:16:22 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	01:16:22 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	01:16:22 	lx 	(10. tbl_ 9)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	01:16:22 	lx 	(10. tbl_ 9)

  database connect time: 0.0003 seconds. 	9.12.2021 	01:16:22 	lx 	(10. tbl_ 9)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	01:16:22 	lx 	(10. tbl_ 9)

Cairo draw version: 1.16.0. 	9.12.2021 	01:16:38 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json' 	 1. 	9.12.2021 	01:16:38 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json' 	 1. 	9.12.2021 	01:16:38 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json' 	 1. 	9.12.2021 	01:16:38 	lx 	(10. tbl_ 9)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo' 	 1. 	9.12.2021 	01:16:38 	lx 	(10. tbl_ 9)

  database connect time: 0.0003 seconds. 	9.12.2021 	01:16:38 	lx 	(10. tbl_ 9)

* connect: connection changed to 'postgre-demo/fi_demo' 	 1. 	9.12.2021 	01:16:38 	lx 	(10. tbl_ 9)

Cairo draw version: 1.16.0. 	9.12.2021 	01:16:44 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json' 	 1. 	9.12.2021 	01:16:44 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json' 	 1. 	9.12.2021 	01:16:44 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json' 	 1. 	9.12.2021 	01:16:44 	lx 	(10. tbl_ 9)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo' 	 1. 	9.12.2021 	01:16:44 	lx 	(10. tbl_ 9)

  database connect time: 0.0003 seconds. 	9.12.2021 	01:16:44 	lx 	(10. tbl_ 9)

* connect: connection changed to 'postgre-demo/fi_demo' 	 1. 	9.12.2021 	01:16:44 	lx 	(10. tbl_ 9)

Cairo draw version: 1.16.0. 	9.12.2021 	01:16:44 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json' 	 1. 	9.12.2021 	01:16:44 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json' 	 1. 	9.12.2021 	01:16:44 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json' 	 1. 	9.12.2021 	01:16:44 	lx 	(10. tbl_ 9)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo' 	 1. 	9.12.2021 	01:16:44 	lx 	(10. tbl_ 9)

  database connect time: 0.0004 seconds. 	9.12.2021 	01:16:44 	lx 	(10. tbl_ 9)

* connect: connection changed to 'postgre-demo/fi_demo' 	 1. 	9.12.2021 	01:16:44 	lx 	(10. tbl_ 9)

Cairo draw version: 1.16.0. 	9.12.2021 	01:16:58 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	01:16:58 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	01:16:58 	lx 	(10. tbl_ 9)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	01:16:58 	lx 	(10. tbl_ 9)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	01:16:58 	lx 	(10. tbl_ 9)

  database connect time: 0.0002 seconds. 	9.12.2021 	01:16:58 	lx 	(10. tbl_ 9)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	01:16:58 	lx 	(10. tbl_ 9)

*** tcp close for sock 96, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***	1. 	9.12.2021 	01:18:20 	lx 	(4. palvelin)

closing socket '96'	1. 	9.12.2021 	01:18:20 	lx 	(4. palvelin)


- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'	1. 	9.12.2021 	01:21:03 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	9.12.2021 	01:21:03 	lx 	(4. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'	1. 	9.12.2021 	01:21:03 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	01:21:03 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	01:21:03 	_lx_ExecuteSqlNew 	(4. palvelin)

*** tcp close for sock 96, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 769 bytes ***	1. 	9.12.2021 	01:21:33 	lx 	(4. palvelin)

closing socket '96'	1. 	9.12.2021 	01:21:33 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	9.12.2021 	01:21:40 	_lx_SERVER 	(5. tbl_ 6)

*** tcp close for sock 73, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	9.12.2021 	01:21:40 	lx 	(4. palvelin)

closing socket '73'	1. 	9.12.2021 	01:21:40 	lx 	(4. palvelin)

*** tcp close for sock 74, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***	1. 	9.12.2021 	01:21:40 	lx 	(4. palvelin)

closing socket '74'	1. 	9.12.2021 	01:21:40 	lx 	(4. palvelin)


 -- Server statistics --
answerCount:          2
poll.fd_count:        0
pollCount:            151466
pollInCount:          3
pollOutCount:         0
pollCloseCount:       3
pollErrCount:         0
fd add/remove count:  5/5
totalBytesReceived:   1541
totalBytesSent:       0	1. 	9.12.2021 	01:21:40 	lx 	(4. palvelin)

--- server stopped ---. 	9.12.2021 	01:21:40 	lx 	(4. palvelin)

finalizer: free p1	cdata<void *>: 0x0133171d80. 	9.12.2021 	01:21:40 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	01:21:40 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	01:21:47 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	01:21:48 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	01:21:48 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	01:21:48 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	01:21:48 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	01:21:48 	lx 	(4. palvelin)

  database connect time: 0.0003 seconds. 	9.12.2021 	01:21:48 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	01:21:48 	lx 	(4. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	9.12.2021 	01:21:48 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	01:21:48 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0131e83560, size: 400. 	9.12.2021 	01:21:48 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	01:21:48 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	9.12.2021 	01:21:48 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	01:21:48 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	9.12.2021 	01:21:48 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker. 	9.12.2021 	01:21:48 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	9.12.2021 	01:21:48 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	9.12.2021 	01:21:48 	lx 	(4. palvelin)

All plugins have been loaded. 	9.12.2021 	01:21:48 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json. 	9.12.2021 	01:21:48 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	9.12.2021 	01:21:48 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	01:21:48 	lx 	(4. palvelin)

Mac address: f84d896921dc. 	9.12.2021 	01:21:48 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	9.12.2021 	01:21:48 	lx 	(4. palvelin)

closing socket '74'. 	9.12.2021 	01:21:48 	lx 	(4. palvelin)

error:    SOCKET ERROR: listen_socket:bind for port 5949 failed with error: (-1) Unknown error: -1
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/net_socket.lua:195: in function 'cleanup'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:811: in function 'listen'
	/Users/pasi/nc/nc-server/lib/server.lua:460: in function 'serverRun'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:139: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:150: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
. 	9.12.2021 	01:21:48 	lx 	(4. palvelin)

***  there is another instance of this program or some other program using the port 5949  ***  . 	9.12.2021 	01:21:48 	lx 	(4. palvelin)

error: server has not been started - quit-lx-server. 	9.12.2021 	01:21:48 	lx 	(4. palvelin)

error:    SOCKET ERROR: listen_socket:bind for port 5949 failed with error: (-1) Unknown error: -1
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/net_socket.lua:195: in function 'cleanup'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:811: in function 'listen'
	/Users/pasi/nc/nc-server/lib/server.lua:460: in function 'serverRun'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:139: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:150: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]. 	9.12.2021 	01:21:48 	_lx_SERVER 	(4. palvelin)

error: server has not been started - quit-lx-server. 	9.12.2021 	01:21:49 	lx 	(4. palvelin)

error: server has not been started - quit-lx-server. 	9.12.2021 	01:21:49 	_lx_SERVER 	(4. palvelin)

warning: -*-ERR: close socket is nil
. 	9.12.2021 	01:21:49 	lx 	(4. palvelin)

warning: -*-ERR: close socket is nil
. 	9.12.2021 	01:21:49 	lx 	(4. palvelin)

 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            0
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  0/0
totalBytesReceived:   0
totalBytesSent:       0. 	9.12.2021 	01:21:49 	lx 	(4. palvelin)

--- server stopped ---. 	9.12.2021 	01:21:49 	lx 	(4. palvelin)

finalizer: free p1 	 cdata<void *>: 0x0131e83560. 	9.12.2021 	01:21:49 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	01:21:49 	_lx_SERVER 	(4. palvelin)

Tcp palvelin 2 ei ole käynnissä. 	9.12.2021 	01:22:03 	_lx_SERVER 	(5. tbl_ 6)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	01:22:10 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	01:22:11 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	01:22:11 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	01:22:11 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	01:22:11 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	01:22:11 	lx 	(4. palvelin)

  database connect time: 0.0003 seconds. 	9.12.2021 	01:22:11 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	01:22:11 	lx 	(4. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	9.12.2021 	01:22:11 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	01:22:11 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0133342690, size: 400. 	9.12.2021 	01:22:11 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	01:22:11 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	9.12.2021 	01:22:11 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	01:22:11 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	9.12.2021 	01:22:11 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker. 	9.12.2021 	01:22:11 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	9.12.2021 	01:22:11 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	9.12.2021 	01:22:11 	lx 	(4. palvelin)

All plugins have been loaded. 	9.12.2021 	01:22:11 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json. 	9.12.2021 	01:22:11 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	9.12.2021 	01:22:11 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	01:22:11 	lx 	(4. palvelin)

Mac address: f84d896921dc. 	9.12.2021 	01:22:11 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	9.12.2021 	01:22:11 	lx 	(4. palvelin)

closing socket '96'. 	9.12.2021 	01:22:11 	lx 	(4. palvelin)

error:    SOCKET ERROR: listen_socket:bind for port 5949 failed with error: (-1) Unknown error: -1
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/net_socket.lua:195: in function 'cleanup'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:811: in function 'listen'
	/Users/pasi/nc/nc-server/lib/server.lua:460: in function 'serverRun'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:139: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:150: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
. 	9.12.2021 	01:22:11 	lx 	(4. palvelin)

***  there is another instance of this program or some other program using the port 5949  ***  . 	9.12.2021 	01:22:11 	lx 	(4. palvelin)

error: server has not been started - quit-lx-server. 	9.12.2021 	01:22:11 	lx 	(4. palvelin)

error:    SOCKET ERROR: listen_socket:bind for port 5949 failed with error: (-1) Unknown error: -1
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/net_socket.lua:195: in function 'cleanup'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:811: in function 'listen'
	/Users/pasi/nc/nc-server/lib/server.lua:460: in function 'serverRun'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:139: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:150: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]. 	9.12.2021 	01:22:11 	_lx_SERVER 	(4. palvelin)

error: server has not been started - quit-lx-server. 	9.12.2021 	01:22:12 	lx 	(4. palvelin)

error: server has not been started - quit-lx-server. 	9.12.2021 	01:22:12 	_lx_SERVER 	(4. palvelin)

warning: -*-ERR: close socket is nil
. 	9.12.2021 	01:22:12 	lx 	(4. palvelin)

warning: -*-ERR: close socket is nil
. 	9.12.2021 	01:22:12 	lx 	(4. palvelin)

 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            0
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  0/0
totalBytesReceived:   0
totalBytesSent:       0. 	9.12.2021 	01:22:12 	lx 	(4. palvelin)

--- server stopped ---. 	9.12.2021 	01:22:12 	lx 	(4. palvelin)

finalizer: free p1 	 cdata<void *>: 0x0133342690. 	9.12.2021 	01:22:12 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	01:22:12 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	01:23:53 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	01:23:53 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	01:23:53 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	01:23:53 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	01:23:53 	lx 	(1. Application process)

  database connect time: 0.0004 seconds. 	9.12.2021 	01:23:53 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	01:23:53 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	01:23:53 	lx 	(1. Application process)

error: preference 'system/nc_server_start.json' was not found
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dprf.lua:466: in function 'preferenceFromJson'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:44: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:27>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
. 	9.12.2021 	01:23:53 	lx 	(1. Application process)

Tcp server 2 start check: start. 	9.12.2021 	01:23:53 	_lx_SERVER 	(1. Application process)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	01:23:54 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

  database connect time: 0.0003 seconds. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x011bc7d520, size: 400. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

All plugins have been loaded. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

Mac address: f84d896921dc. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

closing socket '73'. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

error:    SOCKET ERROR: listen_socket:bind for port 5949 failed with error: (-1) Unknown error: -1
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/net_socket.lua:195: in function 'cleanup'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:811: in function 'listen'
	/Users/pasi/nc/nc-server/lib/server.lua:460: in function 'serverRun'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:139: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:150: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

***  there is another instance of this program or some other program using the port 5949  ***  . 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

error: server has not been started - quit-lx-server. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

error:    SOCKET ERROR: listen_socket:bind for port 5949 failed with error: (-1) Unknown error: -1
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/net_socket.lua:195: in function 'cleanup'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:811: in function 'listen'
	/Users/pasi/nc/nc-server/lib/server.lua:460: in function 'serverRun'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:139: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:150: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]. 	9.12.2021 	01:23:55 	_lx_SERVER 	(4. palvelin)

error: server has not been started - quit-lx-server. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

error: server has not been started - quit-lx-server. 	9.12.2021 	01:23:55 	_lx_SERVER 	(4. palvelin)

warning: -*-ERR: close socket is nil
. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

warning: -*-ERR: close socket is nil
. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            0
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  0/0
totalBytesReceived:   0
totalBytesSent:       0. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

--- server stopped ---. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

finalizer: free p1 	 cdata<void *>: 0x011bc7d520. 	9.12.2021 	01:23:55 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	01:23:55 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	01:24:47 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	01:24:49 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	01:24:49 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	01:24:49 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	01:24:49 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	01:24:49 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	9.12.2021 	01:24:49 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	01:24:49 	lx 	(4. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	9.12.2021 	01:24:49 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	01:24:49 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0129749420, size: 400. 	9.12.2021 	01:24:49 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	01:24:49 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	9.12.2021 	01:24:49 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	01:24:49 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	9.12.2021 	01:24:49 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker. 	9.12.2021 	01:24:49 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	9.12.2021 	01:24:49 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	9.12.2021 	01:24:49 	lx 	(4. palvelin)

All plugins have been loaded. 	9.12.2021 	01:24:49 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json. 	9.12.2021 	01:24:49 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	9.12.2021 	01:24:49 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	01:24:49 	lx 	(4. palvelin)

Mac address: f84d896921dc. 	9.12.2021 	01:24:49 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	9.12.2021 	01:24:49 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/. 	9.12.2021 	01:24:49 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/. 	9.12.2021 	01:24:49 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-09 01:24:49, used memory 2995.4 kb --- 	 5. 	9.12.2021 	01:24:49 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	9.12.2021 	01:24:49 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	9.12.2021 	01:24:53 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	01:24:53 	lx 	(4. palvelin)

closing socket '77'. 	9.12.2021 	01:24:53 	lx 	(4. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	01:24:53 	lx 	(4. palvelin)

closing socket '78'. 	9.12.2021 	01:24:53 	lx 	(4. palvelin)

 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            264
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0. 	9.12.2021 	01:24:53 	lx 	(4. palvelin)

--- server stopped ---. 	9.12.2021 	01:24:53 	lx 	(4. palvelin)

finalizer: free p1 	 cdata<void *>: 0x0129749420. 	9.12.2021 	01:24:53 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	01:24:53 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	01:25:00 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	01:25:02 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	01:25:02 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	01:25:02 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	01:25:02 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	01:25:02 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	9.12.2021 	01:25:02 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	01:25:02 	lx 	(4. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	9.12.2021 	01:25:02 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	01:25:02 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x011b7cbd80, size: 400. 	9.12.2021 	01:25:02 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	01:25:02 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	9.12.2021 	01:25:02 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	01:25:02 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	9.12.2021 	01:25:02 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker. 	9.12.2021 	01:25:02 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	9.12.2021 	01:25:02 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	9.12.2021 	01:25:02 	lx 	(4. palvelin)

All plugins have been loaded. 	9.12.2021 	01:25:02 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json. 	9.12.2021 	01:25:02 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	9.12.2021 	01:25:02 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	01:25:02 	lx 	(4. palvelin)

Mac address: f84d896921dc. 	9.12.2021 	01:25:02 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	9.12.2021 	01:25:02 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.105.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.105.1:5949/. 	9.12.2021 	01:25:02 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.105.1:5949/. 	9.12.2021 	01:25:02 	lx 	(4. palvelin)

--- server started in 0.001 seconds, 2021-12-09 01:25:02, used memory 3060.5 kb --- 	 5. 	9.12.2021 	01:25:02 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	9.12.2021 	01:25:02 	lx 	(4. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-09 01:25:25
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 502
Content-Uncompressed-Length: 584

LZ4. 	9.12.2021 	01:25:25 	lx 	(4. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	01:25:25 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	01:25:25 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	9.12.2021 	01:25:25 	lx 	(4. palvelin)

  database connect time: 0.0001 seconds. 	9.12.2021 	01:25:25 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	9.12.2021 	01:25:25 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	01:25:25 	lx 	(4. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	01:25:25 	lx 	(4. palvelin)

from4d selectionToRecordArray queryText: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	01:25:25 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1 - original query:
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	01:25:25 	_lx_ExecuteSqlNew 	(4. palvelin)

*** tcp close for sock 80, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 772 bytes ***. 	9.12.2021 	01:25:30 	lx 	(4. palvelin)

closing socket '80'. 	9.12.2021 	01:25:30 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	9.12.2021 	01:27:45 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 78, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	01:27:45 	lx 	(4. palvelin)

closing socket '78'. 	9.12.2021 	01:27:45 	lx 	(4. palvelin)

*** tcp close for sock 79, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	01:27:45 	lx 	(4. palvelin)

closing socket '79'. 	9.12.2021 	01:27:45 	lx 	(4. palvelin)

 -- Server statistics --
answerCount:          1
poll.fd_count:        0
pollCount:            11385
pollInCount:          1
pollOutCount:         0
pollCloseCount:       1
pollErrCount:         0
fd add/remove count:  3/3
totalBytesReceived:   772
totalBytesSent:       0. 	9.12.2021 	01:27:45 	lx 	(4. palvelin)

--- server stopped ---. 	9.12.2021 	01:27:45 	lx 	(4. palvelin)

finalizer: free p1 	 cdata<void *>: 0x011b7cbd80. 	9.12.2021 	01:27:45 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	01:27:45 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	11:51:05 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	11:51:05 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	11:51:05 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	11:51:05 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	11:51:05 	lx 	(1. Application process)

  database connect time: 0.0003 seconds. 	9.12.2021 	11:51:05 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	11:51:05 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	11:51:05 	lx 	(1. Application process)

error: preference 'system/nc_server_start.json' was not found
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dprf.lua:466: in function 'preferenceFromJson'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:44: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:27>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
. 	9.12.2021 	11:51:05 	lx 	(1. Application process)

Tcp server 2 start check: start. 	9.12.2021 	11:51:05 	_lx_SERVER 	(1. Application process)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	11:51:05 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	11:51:06 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	11:51:06 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	11:51:06 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	11:51:06 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	11:51:06 	lx 	(4. palvelin)

  database connect time: 0.0003 seconds. 	9.12.2021 	11:51:06 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	11:51:06 	lx 	(4. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	9.12.2021 	11:51:06 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	11:51:06 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x011dcd76c0, size: 400. 	9.12.2021 	11:51:07 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	11:51:07 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	9.12.2021 	11:51:07 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	11:51:07 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	9.12.2021 	11:51:07 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker. 	9.12.2021 	11:51:07 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	9.12.2021 	11:51:07 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	9.12.2021 	11:51:07 	lx 	(4. palvelin)

All plugins have been loaded. 	9.12.2021 	11:51:07 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json. 	9.12.2021 	11:51:07 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	9.12.2021 	11:51:07 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	11:51:07 	lx 	(4. palvelin)

Mac address: f84d896921dc. 	9.12.2021 	11:51:07 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	9.12.2021 	11:51:07 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.1.15:5949/
                          https://127.0.0.1:5949/, https://192.168.1.15:5949/. 	9.12.2021 	11:51:07 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.1.15:5949/. 	9.12.2021 	11:51:07 	lx 	(4. palvelin)

--- server started in 0.005 seconds, 2021-12-09 11:51:07, used memory 2994.3 kb --- 	 5. 	9.12.2021 	11:51:07 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	9.12.2021 	11:51:07 	lx 	(4. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-09 11:54:34
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 505
Content-Uncompressed-Length: 584

LZ4. 	9.12.2021 	11:54:34 	lx 	(4. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	11:54:34 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	11:54:34 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	9.12.2021 	11:54:34 	lx 	(4. palvelin)

  database connect time: 0.0001 seconds. 	9.12.2021 	11:54:34 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	9.12.2021 	11:54:34 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	11:54:34 	lx 	(4. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	11:54:34 	lx 	(4. palvelin)

finalizer: free p1 	 cdata<void *>: 0x011dcd76c0. 	9.12.2021 	12:02:07 	lx 	(4. palvelin)

Tcp palvelin 2 on jo käynnissä. 	9.12.2021 	12:03:15 	_lx_SERVER 	(4. tbl_ 8)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	12:03:15 	_lx_SERVER 	(10. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	12:03:16 	lx 	(10. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	12:03:16 	lx 	(10. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	12:03:16 	lx 	(10. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	12:03:16 	lx 	(10. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	12:03:16 	lx 	(10. palvelin)

  database connect time: 0.0002 seconds. 	9.12.2021 	12:03:16 	lx 	(10. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	12:03:16 	lx 	(10. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	9.12.2021 	12:03:16 	lx 	(10. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	12:03:16 	lx 	(10. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x017d4e6e10, size: 400. 	9.12.2021 	12:03:17 	lx 	(10. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	12:03:17 	lx 	(10. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	9.12.2021 	12:03:17 	lx 	(10. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	12:03:17 	lx 	(10. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	9.12.2021 	12:03:17 	lx 	(10. palvelin)

2. Loading plugin: nc/worker/query_worker. 	9.12.2021 	12:03:17 	lx 	(10. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	9.12.2021 	12:03:17 	lx 	(10. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	9.12.2021 	12:03:17 	lx 	(10. palvelin)

All plugins have been loaded. 	9.12.2021 	12:03:17 	lx 	(10. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json. 	9.12.2021 	12:03:17 	lx 	(10. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	9.12.2021 	12:03:17 	lx 	(10. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	12:03:17 	lx 	(10. palvelin)

Mac address: f84d896921dc. 	9.12.2021 	12:03:17 	lx 	(10. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	9.12.2021 	12:03:17 	lx 	(10. palvelin)

closing socket '80'. 	9.12.2021 	12:03:17 	lx 	(10. palvelin)

error:    SOCKET ERROR: listen_socket:bind for port 5949 failed with error: (-1) Unknown error: -1
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/net_socket.lua:195: in function 'cleanup'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:811: in function 'listen'
	/Users/pasi/nc/nc-server/lib/server.lua:460: in function 'serverRun'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:139: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:150: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
. 	9.12.2021 	12:03:17 	lx 	(10. palvelin)

***  there is another instance of this program or some other program using the port 5949  ***  . 	9.12.2021 	12:03:17 	lx 	(10. palvelin)

error: server has not been started - quit-lx-server. 	9.12.2021 	12:03:17 	lx 	(10. palvelin)

error:    SOCKET ERROR: listen_socket:bind for port 5949 failed with error: (-1) Unknown error: -1
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/net_socket.lua:195: in function 'cleanup'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:811: in function 'listen'
	/Users/pasi/nc/nc-server/lib/server.lua:460: in function 'serverRun'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:139: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:150: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]. 	9.12.2021 	12:03:17 	_lx_SERVER 	(10. palvelin)

error: server has not been started - quit-lx-server. 	9.12.2021 	12:03:17 	lx 	(10. palvelin)

error: server has not been started - quit-lx-server. 	9.12.2021 	12:03:17 	_lx_SERVER 	(10. palvelin)

warning: -*-ERR: close socket is nil
. 	9.12.2021 	12:03:17 	lx 	(10. palvelin)

warning: -*-ERR: close socket is nil
. 	9.12.2021 	12:03:17 	lx 	(10. palvelin)

 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            0
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  0/0
totalBytesReceived:   0
totalBytesSent:       0. 	9.12.2021 	12:03:17 	lx 	(10. palvelin)

--- server stopped ---. 	9.12.2021 	12:03:17 	lx 	(10. palvelin)

finalizer: free p1 	 cdata<void *>: 0x017d4e6e10. 	9.12.2021 	12:03:17 	lx 	(10. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	12:03:17 	_lx_SERVER 	(10. palvelin)

Tcp palvelin 2 ei ole käynnissä. 	9.12.2021 	12:03:57 	_lx_SERVER 	(4. tbl_ 8)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	12:04:06 	_lx_SERVER 	(10. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

  database connect time: 0.0005 seconds. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x011dd43650, size: 400. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

2. Loading plugin: nc/worker/query_worker. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

All plugins have been loaded. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

Mac address: f84d896921dc. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

closing socket '81'. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

error:    SOCKET ERROR: listen_socket:bind for port 5949 failed with error: (-1) Unknown error: -1
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/net_socket.lua:195: in function 'cleanup'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:811: in function 'listen'
	/Users/pasi/nc/nc-server/lib/server.lua:460: in function 'serverRun'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:139: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:150: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

***  there is another instance of this program or some other program using the port 5949  ***  . 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

error: server has not been started - quit-lx-server. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

error:    SOCKET ERROR: listen_socket:bind for port 5949 failed with error: (-1) Unknown error: -1
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/net_socket.lua:195: in function 'cleanup'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:811: in function 'listen'
	/Users/pasi/nc/nc-server/lib/server.lua:460: in function 'serverRun'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:139: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:150: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]. 	9.12.2021 	12:04:08 	_lx_SERVER 	(10. palvelin)

error: server has not been started - quit-lx-server. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

error: server has not been started - quit-lx-server. 	9.12.2021 	12:04:08 	_lx_SERVER 	(10. palvelin)

warning: -*-ERR: close socket is nil
. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

warning: -*-ERR: close socket is nil
. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            0
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  0/0
totalBytesReceived:   0
totalBytesSent:       0. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

--- server stopped ---. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

finalizer: free p1 	 cdata<void *>: 0x011dd43650. 	9.12.2021 	12:04:08 	lx 	(10. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	12:04:08 	_lx_SERVER 	(10. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	12:46:30 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	12:46:30 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	12:46:30 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	12:46:30 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	12:46:30 	lx 	(1. Application process)

  database connect time: 0.0002 seconds. 	9.12.2021 	12:46:30 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	12:46:30 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	12:46:30 	lx 	(1. Application process)

error: preference 'system/nc_server_start.json' was not found
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dprf.lua:466: in function 'preferenceFromJson'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:44: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:27>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
. 	9.12.2021 	12:46:30 	lx 	(1. Application process)

Tcp server 2 start check: start. 	9.12.2021 	12:46:30 	_lx_SERVER 	(1. Application process)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	12:46:30 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	12:46:32 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	12:46:32 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	12:46:32 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	12:46:32 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	12:46:32 	lx 	(4. palvelin)

  database connect time: 0.0003 seconds. 	9.12.2021 	12:46:32 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	12:46:32 	lx 	(4. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	9.12.2021 	12:46:32 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	12:46:32 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01177deb30, size: 400. 	9.12.2021 	12:46:32 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	12:46:32 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	9.12.2021 	12:46:32 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	12:46:32 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	9.12.2021 	12:46:32 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker. 	9.12.2021 	12:46:32 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	9.12.2021 	12:46:32 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	9.12.2021 	12:46:32 	lx 	(4. palvelin)

All plugins have been loaded. 	9.12.2021 	12:46:32 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json. 	9.12.2021 	12:46:32 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	9.12.2021 	12:46:32 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	12:46:32 	lx 	(4. palvelin)

Mac address: f84d896921dc. 	9.12.2021 	12:46:32 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	9.12.2021 	12:46:32 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.1.15:5949/
                          https://127.0.0.1:5949/, https://192.168.1.15:5949/. 	9.12.2021 	12:46:32 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.1.15:5949/. 	9.12.2021 	12:46:32 	lx 	(4. palvelin)

--- server started in 0.003 seconds, 2021-12-09 12:46:32, used memory 2994.3 kb --- 	 5. 	9.12.2021 	12:46:32 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	9.12.2021 	12:46:32 	lx 	(4. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-09 12:51:10
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 508
Content-Uncompressed-Length: 584

LZ4. 	9.12.2021 	12:51:10 	lx 	(4. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	12:51:10 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	12:51:10 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	9.12.2021 	12:51:10 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	9.12.2021 	12:51:10 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	9.12.2021 	12:51:10 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	12:51:10 	lx 	(4. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	12:51:10 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1
 - original query: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	12:51:19 	_lx_ExecuteSqlNew 	(4. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 778 bytes ***. 	9.12.2021 	12:51:46 	lx 	(4. palvelin)

closing socket '78'. 	9.12.2021 	12:51:46 	lx 	(4. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	12:53:53 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	12:53:53 	lx 	(4. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	12:53:53 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1
 - original query: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	12:54:12 	_lx_ExecuteSqlNew 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	12:54:45 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	12:54:45 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	12:54:45 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	12:54:46 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	12:54:46 	lx 	(1. Application process)

  database connect time: 0.0005 seconds. 	9.12.2021 	12:54:46 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	12:54:46 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	12:54:46 	lx 	(1. Application process)

error: preference 'system/nc_server_start.json' was not found
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dprf.lua:466: in function 'preferenceFromJson'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:44: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:27>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
. 	9.12.2021 	12:54:46 	lx 	(1. Application process)

Tcp server 2 start check: start. 	9.12.2021 	12:54:46 	_lx_SERVER 	(1. Application process)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	12:54:46 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	12:54:47 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	12:54:47 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	12:54:47 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	12:54:47 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	12:54:47 	lx 	(4. palvelin)

  database connect time: 0.0004 seconds. 	9.12.2021 	12:54:47 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	12:54:47 	lx 	(4. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	9.12.2021 	12:54:47 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	12:54:47 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x012a9d6810, size: 400. 	9.12.2021 	12:54:47 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	12:54:47 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	9.12.2021 	12:54:47 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	12:54:47 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	9.12.2021 	12:54:47 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker. 	9.12.2021 	12:54:47 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	9.12.2021 	12:54:47 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	9.12.2021 	12:54:47 	lx 	(4. palvelin)

All plugins have been loaded. 	9.12.2021 	12:54:47 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json. 	9.12.2021 	12:54:47 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	9.12.2021 	12:54:47 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	12:54:47 	lx 	(4. palvelin)

Mac address: f84d896921dc. 	9.12.2021 	12:54:47 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	9.12.2021 	12:54:47 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.1.15:5949/
                          https://127.0.0.1:5949/, https://192.168.1.15:5949/. 	9.12.2021 	12:54:47 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.1.15:5949/. 	9.12.2021 	12:54:47 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-09 12:54:47, used memory 3117.1 kb --- 	 5. 	9.12.2021 	12:54:47 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	9.12.2021 	12:54:47 	lx 	(4. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-09 13:01:37
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 514
Content-Uncompressed-Length: 584

LZ4. 	9.12.2021 	13:01:37 	lx 	(4. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	13:01:37 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	13:01:37 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	9.12.2021 	13:01:37 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	9.12.2021 	13:01:37 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	9.12.2021 	13:01:37 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	13:01:37 	lx 	(4. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	13:01:37 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1
 - original query: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	13:02:05 	_lx_ExecuteSqlNew 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	9.12.2021 	14:16:40 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 76, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	14:16:40 	lx 	(4. palvelin)

closing socket '76'. 	9.12.2021 	14:16:40 	lx 	(4. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	14:16:40 	lx 	(4. palvelin)

closing socket '77'. 	9.12.2021 	14:16:40 	lx 	(4. palvelin)

 -- Server statistics --
answerCount:          1
poll.fd_count:        1
pollCount:            122473
pollInCount:          1
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  3/2
totalBytesReceived:   784
totalBytesSent:       0. 	9.12.2021 	14:16:40 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 78
. 	9.12.2021 	14:16:40 	lx 	(4. palvelin)

closing socket '78'. 	9.12.2021 	14:16:40 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x012a9d6810. 	9.12.2021 	14:16:40 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x012a9d6810, size: 400. 	9.12.2021 	14:16:40 	lx 	(4. palvelin)

--- server stopped ---. 	9.12.2021 	14:16:40 	lx 	(4. palvelin)

finalizer: free p1 	 cdata<void *>: 0x012a9d6810. 	9.12.2021 	14:16:40 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	14:16:40 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	14:16:44 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	14:16:46 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	14:16:46 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	14:16:46 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	14:16:46 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	14:16:46 	lx 	(4. palvelin)

  database connect time: 0.0003 seconds. 	9.12.2021 	14:16:46 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	14:16:46 	lx 	(4. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	9.12.2021 	14:16:46 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	14:16:46 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x013afe6180, size: 400. 	9.12.2021 	14:16:46 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	14:16:46 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	9.12.2021 	14:16:46 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	14:16:46 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	9.12.2021 	14:16:46 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker. 	9.12.2021 	14:16:46 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	9.12.2021 	14:16:46 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	9.12.2021 	14:16:46 	lx 	(4. palvelin)

All plugins have been loaded. 	9.12.2021 	14:16:46 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json. 	9.12.2021 	14:16:46 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	9.12.2021 	14:16:46 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	14:16:46 	lx 	(4. palvelin)

Mac address: f84d896921dc. 	9.12.2021 	14:16:46 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	9.12.2021 	14:16:46 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.1.15:5949/
                          https://127.0.0.1:5949/, https://192.168.1.15:5949/. 	9.12.2021 	14:16:46 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.1.15:5949/. 	9.12.2021 	14:16:46 	lx 	(4. palvelin)

--- server started in 0.002 seconds, 2021-12-09 14:16:46, used memory 2994.1 kb --- 	 5. 	9.12.2021 	14:16:46 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	9.12.2021 	14:16:46 	lx 	(4. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-09 14:18:15
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 514
Content-Uncompressed-Length: 584

LZ4. 	9.12.2021 	14:18:15 	lx 	(4. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	14:18:15 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	14:18:15 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	9.12.2021 	14:18:15 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	9.12.2021 	14:18:15 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	9.12.2021 	14:18:15 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:18:15 	lx 	(4. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:18:15 	lx 	(4. palvelin)

plg4d fldName selectionToArrayTable = {
 [1] = "name_id";
 [2] = "text_value";
};. 	9.12.2021 	14:18:15 	lx 	(4. palvelin)

plg4d fldType selectionToArrayTable = {
 [1] = "string";
 [2] = "string";
};. 	9.12.2021 	14:18:15 	lx 	(4. palvelin)

plg4d option selectionToArrayTable = {};. 	9.12.2021 	14:18:15 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	9.12.2021 	14:20:03 	_lx_SERVER 	(5. tbl_ 8)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	14:20:03 	lx 	(4. palvelin)

closing socket '77'. 	9.12.2021 	14:20:03 	lx 	(4. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	14:20:03 	lx 	(4. palvelin)

closing socket '78'. 	9.12.2021 	14:20:03 	lx 	(4. palvelin)

 -- Server statistics --
answerCount:          1
poll.fd_count:        1
pollCount:            13841
pollInCount:          1
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  3/2
totalBytesReceived:   784
totalBytesSent:       0. 	9.12.2021 	14:20:03 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 79
. 	9.12.2021 	14:20:03 	lx 	(4. palvelin)

closing socket '79'. 	9.12.2021 	14:20:03 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x013afe6180. 	9.12.2021 	14:20:03 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x013afe6180, size: 400. 	9.12.2021 	14:20:03 	lx 	(4. palvelin)

--- server stopped ---. 	9.12.2021 	14:20:03 	lx 	(4. palvelin)

finalizer: free p1 	 cdata<void *>: 0x013afe6180. 	9.12.2021 	14:20:03 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	14:20:03 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	14:20:21 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	14:20:23 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	14:20:23 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	14:20:23 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	14:20:23 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	14:20:23 	lx 	(4. palvelin)

  database connect time: 0.0003 seconds. 	9.12.2021 	14:20:23 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	14:20:23 	lx 	(4. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	9.12.2021 	14:20:23 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	14:20:23 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0153e58930, size: 400. 	9.12.2021 	14:20:23 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	14:20:23 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	9.12.2021 	14:20:23 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	14:20:23 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	9.12.2021 	14:20:23 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker. 	9.12.2021 	14:20:23 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	9.12.2021 	14:20:23 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	9.12.2021 	14:20:23 	lx 	(4. palvelin)

All plugins have been loaded. 	9.12.2021 	14:20:23 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json. 	9.12.2021 	14:20:23 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	9.12.2021 	14:20:23 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	14:20:23 	lx 	(4. palvelin)

Mac address: f84d896921dc. 	9.12.2021 	14:20:23 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	9.12.2021 	14:20:23 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.1.15:5949/
                          https://127.0.0.1:5949/, https://192.168.1.15:5949/. 	9.12.2021 	14:20:23 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.1.15:5949/. 	9.12.2021 	14:20:23 	lx 	(4. palvelin)

--- server started in 0.003 seconds, 2021-12-09 14:20:23, used memory 3019.1 kb --- 	 5. 	9.12.2021 	14:20:23 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	9.12.2021 	14:20:23 	lx 	(4. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-09 14:20:34
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 517
Content-Uncompressed-Length: 584

LZ4. 	9.12.2021 	14:20:34 	lx 	(4. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	14:20:34 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	14:20:34 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	9.12.2021 	14:20:34 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	9.12.2021 	14:20:34 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	9.12.2021 	14:20:34 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:20:34 	lx 	(4. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:20:34 	lx 	(4. palvelin)

plg4d fldName selectionToArrayTable = {
 [1] = "name_id";
 [2] = "text_value";
};. 	9.12.2021 	14:20:34 	lx 	(4. palvelin)

plg4d fldType selectionToArrayTable = {
 [1] = "string";
 [2] = "string";
};. 	9.12.2021 	14:20:34 	lx 	(4. palvelin)

plg4d option selectionToArrayTable = {};. 	9.12.2021 	14:20:34 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	9.12.2021 	14:21:17 	_lx_SERVER 	(5. tbl_ 8)

*** tcp close for sock 78, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	14:21:17 	lx 	(4. palvelin)

closing socket '78'. 	9.12.2021 	14:21:17 	lx 	(4. palvelin)

*** tcp close for sock 79, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	14:21:17 	lx 	(4. palvelin)

closing socket '79'. 	9.12.2021 	14:21:17 	lx 	(4. palvelin)

 -- Server statistics --
answerCount:          1
poll.fd_count:        1
pollCount:            3649
pollInCount:          1
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  3/2
totalBytesReceived:   787
totalBytesSent:       0. 	9.12.2021 	14:21:17 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 80
. 	9.12.2021 	14:21:17 	lx 	(4. palvelin)

closing socket '80'. 	9.12.2021 	14:21:17 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x0153e58930. 	9.12.2021 	14:21:17 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0153e58930, size: 400. 	9.12.2021 	14:21:17 	lx 	(4. palvelin)

--- server stopped ---. 	9.12.2021 	14:21:17 	lx 	(4. palvelin)

finalizer: free p1 	 cdata<void *>: 0x0153e58930. 	9.12.2021 	14:21:17 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	14:21:17 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	14:21:22 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	14:21:24 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	14:21:24 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	14:21:24 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	14:21:24 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	14:21:24 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	9.12.2021 	14:21:24 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	14:21:24 	lx 	(4. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	9.12.2021 	14:21:24 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	14:21:24 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x015b9bc5d0, size: 400. 	9.12.2021 	14:21:24 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	14:21:24 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	9.12.2021 	14:21:24 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	14:21:24 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	9.12.2021 	14:21:24 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker. 	9.12.2021 	14:21:24 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	9.12.2021 	14:21:24 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	9.12.2021 	14:21:24 	lx 	(4. palvelin)

All plugins have been loaded. 	9.12.2021 	14:21:24 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json. 	9.12.2021 	14:21:24 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	9.12.2021 	14:21:24 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	14:21:24 	lx 	(4. palvelin)

Mac address: f84d896921dc. 	9.12.2021 	14:21:24 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	9.12.2021 	14:21:24 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.1.15:5949/
                          https://127.0.0.1:5949/, https://192.168.1.15:5949/. 	9.12.2021 	14:21:24 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.1.15:5949/. 	9.12.2021 	14:21:24 	lx 	(4. palvelin)

--- server started in 0.003 seconds, 2021-12-09 14:21:24, used memory 2994.1 kb --- 	 5. 	9.12.2021 	14:21:24 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	9.12.2021 	14:21:24 	lx 	(4. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-09 14:21:37
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 502
Content-Uncompressed-Length: 584

LZ4. 	9.12.2021 	14:21:37 	lx 	(4. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	14:21:37 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	14:21:37 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	9.12.2021 	14:21:37 	lx 	(4. palvelin)

  database connect time: 0.0001 seconds. 	9.12.2021 	14:21:37 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	9.12.2021 	14:21:37 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:21:37 	lx 	(4. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:21:37 	lx 	(4. palvelin)

plg4d fldName selectionToArrayTable = {
 [1] = "name_id";
 [2] = "text_value";
};. 	9.12.2021 	14:21:37 	lx 	(4. palvelin)

plg4d fldType selectionToArrayTable = {
 [1] = "string";
 [2] = "string";
};. 	9.12.2021 	14:21:37 	lx 	(4. palvelin)

plg4d option selectionToArrayTable = {};. 	9.12.2021 	14:21:37 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1
 - original query: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	14:21:47 	_lx_ExecuteSqlNew 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	9.12.2021 	14:23:42 	_lx_SERVER 	(5. tbl_ 8)

*** tcp close for sock 79, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	14:23:42 	lx 	(4. palvelin)

closing socket '79'. 	9.12.2021 	14:23:42 	lx 	(4. palvelin)

*** tcp close for sock 80, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	14:23:42 	lx 	(4. palvelin)

closing socket '80'. 	9.12.2021 	14:23:42 	lx 	(4. palvelin)

 -- Server statistics --
answerCount:          1
poll.fd_count:        1
pollCount:            8913
pollInCount:          1
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  3/2
totalBytesReceived:   772
totalBytesSent:       0. 	9.12.2021 	14:23:42 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 81
. 	9.12.2021 	14:23:42 	lx 	(4. palvelin)

closing socket '81'. 	9.12.2021 	14:23:42 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x015b9bc5d0. 	9.12.2021 	14:23:42 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x015b9bc5d0, size: 400. 	9.12.2021 	14:23:42 	lx 	(4. palvelin)

--- server stopped ---. 	9.12.2021 	14:23:42 	lx 	(4. palvelin)

finalizer: free p1 	 cdata<void *>: 0x015b9bc5d0. 	9.12.2021 	14:23:42 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	14:23:42 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	14:24:07 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	14:24:08 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	14:24:08 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	14:24:08 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	14:24:08 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	14:24:08 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	9.12.2021 	14:24:08 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	14:24:08 	lx 	(4. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	9.12.2021 	14:24:08 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	14:24:08 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x012aadd810, size: 400. 	9.12.2021 	14:24:08 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	14:24:08 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	9.12.2021 	14:24:08 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	14:24:08 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	9.12.2021 	14:24:08 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker. 	9.12.2021 	14:24:08 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	9.12.2021 	14:24:08 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	9.12.2021 	14:24:08 	lx 	(4. palvelin)

All plugins have been loaded. 	9.12.2021 	14:24:08 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json. 	9.12.2021 	14:24:08 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	9.12.2021 	14:24:08 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	14:24:08 	lx 	(4. palvelin)

Mac address: f84d896921dc. 	9.12.2021 	14:24:08 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	9.12.2021 	14:24:08 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.1.15:5949/
                          https://127.0.0.1:5949/, https://192.168.1.15:5949/. 	9.12.2021 	14:24:08 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.1.15:5949/. 	9.12.2021 	14:24:08 	lx 	(4. palvelin)

--- server started in 0.003 seconds, 2021-12-09 14:24:08, used memory 2994.1 kb --- 	 5. 	9.12.2021 	14:24:08 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	9.12.2021 	14:24:08 	lx 	(4. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-09 14:24:29
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 506
Content-Uncompressed-Length: 584

LZ4. 	9.12.2021 	14:24:29 	lx 	(4. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	14:24:29 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	14:24:29 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	9.12.2021 	14:24:29 	lx 	(4. palvelin)

  database connect time: 0.0000 seconds. 	9.12.2021 	14:24:29 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	9.12.2021 	14:24:29 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:24:29 	lx 	(4. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:24:29 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1
 - original query: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	14:24:33 	_lx_ExecuteSqlNew 	(4. palvelin)

plg4d.selectionToArrayTable: arrName = {
 [1] = "_lx_atExe1";
 [2] = "_lx_atExe2";
};. 	9.12.2021 	14:24:33 	lx 	(4. palvelin)

plg4d.selectionToArrayTable: fieldName = {
 [1] = "name_id";
 [2] = "text_value";
};. 	9.12.2021 	14:24:33 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	9.12.2021 	14:26:01 	_lx_SERVER 	(5. tbl_ 8)

*** tcp close for sock 80, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	14:26:01 	lx 	(4. palvelin)

closing socket '80'. 	9.12.2021 	14:26:01 	lx 	(4. palvelin)

*** tcp close for sock 81, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	14:26:01 	lx 	(4. palvelin)

closing socket '81'. 	9.12.2021 	14:26:01 	lx 	(4. palvelin)

 -- Server statistics --
answerCount:          1
poll.fd_count:        1
pollCount:            7569
pollInCount:          1
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  3/2
totalBytesReceived:   776
totalBytesSent:       0. 	9.12.2021 	14:26:01 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 82
. 	9.12.2021 	14:26:01 	lx 	(4. palvelin)

closing socket '82'. 	9.12.2021 	14:26:01 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x012aadd810. 	9.12.2021 	14:26:01 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x012aadd810, size: 400. 	9.12.2021 	14:26:01 	lx 	(4. palvelin)

--- server stopped ---. 	9.12.2021 	14:26:01 	lx 	(4. palvelin)

finalizer: free p1 	 cdata<void *>: 0x012aadd810. 	9.12.2021 	14:26:01 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	14:26:01 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	14:27:03 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	14:27:05 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	14:27:05 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	14:27:05 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	14:27:05 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	14:27:05 	lx 	(4. palvelin)

  database connect time: 0.0003 seconds. 	9.12.2021 	14:27:05 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	14:27:05 	lx 	(4. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	9.12.2021 	14:27:05 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	14:27:05 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x015aee1070, size: 400. 	9.12.2021 	14:27:05 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	14:27:05 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	9.12.2021 	14:27:05 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	14:27:05 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	9.12.2021 	14:27:05 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker. 	9.12.2021 	14:27:05 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	9.12.2021 	14:27:05 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	9.12.2021 	14:27:05 	lx 	(4. palvelin)

All plugins have been loaded. 	9.12.2021 	14:27:05 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json. 	9.12.2021 	14:27:05 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	9.12.2021 	14:27:05 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	14:27:05 	lx 	(4. palvelin)

Mac address: f84d896921dc. 	9.12.2021 	14:27:05 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	9.12.2021 	14:27:05 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.1.15:5949/
                          https://127.0.0.1:5949/, https://192.168.1.15:5949/. 	9.12.2021 	14:27:05 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.1.15:5949/. 	9.12.2021 	14:27:05 	lx 	(4. palvelin)

--- server started in 0.003 seconds, 2021-12-09 14:27:05, used memory 3093.4 kb --- 	 5. 	9.12.2021 	14:27:05 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	9.12.2021 	14:27:05 	lx 	(4. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-09 14:27:18
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 510
Content-Uncompressed-Length: 584

LZ4. 	9.12.2021 	14:27:18 	lx 	(4. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	14:27:18 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	14:27:18 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	9.12.2021 	14:27:18 	lx 	(4. palvelin)

  database connect time: 0.0001 seconds. 	9.12.2021 	14:27:18 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	9.12.2021 	14:27:18 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:27:18 	lx 	(4. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:27:18 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1
 - original query: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	14:27:18 	_lx_ExecuteSqlNew 	(4. palvelin)

plg4d.selectionToRecordArray sel = {
 [1] = {
  ["name_id"] = "_tab_co.json";
  ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
 };
 [2] = {
  ["name_id"] = "_tab_default.json";
  ["text_value"] = "{ \"tab\": [ { \"name\": \"Lista\", \"query_type\": \"\", \"query_name\": \"\", \"list_name\": \"Lista\" } ] }";
 };
};. 	9.12.2021 	14:27:18 	lx 	(4. palvelin)

*** tcp close for sock 83, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 780 bytes ***. 	9.12.2021 	14:30:24 	lx 	(4. palvelin)

closing socket '83'. 	9.12.2021 	14:30:24 	lx 	(4. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	14:30:48 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:30:48 	lx 	(4. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:30:48 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1
 - original query: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	14:30:48 	_lx_ExecuteSqlNew 	(4. palvelin)

plg4d.selectionToRecordArray sel = {
 [1] = {
  ["name_id"] = "_tab_co.json";
  ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
 };
 [2] = {
  ["name_id"] = "_tab_default.json";
  ["text_value"] = "{ \"tab\": [ { \"name\": \"Lista\", \"query_type\": \"\", \"query_name\": \"\", \"list_name\": \"Lista\" } ] }";
 };
};. 	9.12.2021 	14:30:48 	lx 	(4. palvelin)

*** tcp close for sock 83, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 781 bytes ***. 	9.12.2021 	14:31:04 	lx 	(4. palvelin)

closing socket '83'. 	9.12.2021 	14:31:04 	lx 	(4. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	14:31:20 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:31:20 	lx 	(4. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:31:20 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1
 - original query: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	14:31:20 	_lx_ExecuteSqlNew 	(4. palvelin)

plg4d.selectionToRecordArray sel = {
 [1] = {
  ["name_id"] = "_tab_co.json";
  ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
 };
 [2] = {
  ["name_id"] = "_tab_default.json";
  ["text_value"] = "{ \"tab\": [ { \"name\": \"Lista\", \"query_type\": \"\", \"query_name\": \"\", \"list_name\": \"Lista\" } ] }";
 };
};. 	9.12.2021 	14:31:20 	lx 	(4. palvelin)

*** tcp close for sock 83, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 771 bytes ***. 	9.12.2021 	14:31:56 	lx 	(4. palvelin)

closing socket '83'. 	9.12.2021 	14:31:56 	lx 	(4. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	14:32:03 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:32:03 	lx 	(4. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:32:03 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1
 - original query: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	14:32:03 	_lx_ExecuteSqlNew 	(4. palvelin)

plg4d.selectionToRecordArray sel = {
 [1] = {
  ["name_id"] = "_tab_co.json";
  ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
 };
 [2] = {
  ["name_id"] = "_tab_default.json";
  ["text_value"] = "{ \"tab\": [ { \"name\": \"Lista\", \"query_type\": \"\", \"query_name\": \"\", \"list_name\": \"Lista\" } ] }";
 };
};. 	9.12.2021 	14:32:03 	lx 	(4. palvelin)

*** tcp close for sock 83, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 773 bytes ***. 	9.12.2021 	14:32:46 	lx 	(4. palvelin)

closing socket '83'. 	9.12.2021 	14:32:46 	lx 	(4. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	14:34:02 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:34:02 	lx 	(4. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:34:02 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1
 - original query: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	14:34:02 	_lx_ExecuteSqlNew 	(4. palvelin)

plg4d.selectionToRecordArray sel = {
 [1] = {
  ["name_id"] = "_tab_co.json";
  ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
 };
 [2] = {
  ["name_id"] = "_tab_default.json";
  ["text_value"] = "{ \"tab\": [ { \"name\": \"Lista\", \"query_type\": \"\", \"query_name\": \"\", \"list_name\": \"Lista\" } ] }";
 };
};. 	9.12.2021 	14:34:02 	lx 	(4. palvelin)

*** tcp close for sock 83, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 774 bytes ***. 	9.12.2021 	14:34:08 	lx 	(4. palvelin)

closing socket '83'. 	9.12.2021 	14:34:08 	lx 	(4. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	14:34:15 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:34:15 	lx 	(4. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:34:15 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1
 - original query: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	14:34:16 	_lx_ExecuteSqlNew 	(4. palvelin)

plg4d.selectionToRecordArray sel = {
 [1] = {
  ["name_id"] = "_tab_co.json";
  ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
 };
 [2] = {
  ["name_id"] = "_tab_default.json";
  ["text_value"] = "{ \"tab\": [ { \"name\": \"Lista\", \"query_type\": \"\", \"query_name\": \"\", \"list_name\": \"Lista\" } ] }";
 };
};. 	9.12.2021 	14:34:16 	lx 	(4. palvelin)

*** tcp close for sock 83, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 767 bytes ***. 	9.12.2021 	14:34:24 	lx 	(4. palvelin)

closing socket '83'. 	9.12.2021 	14:34:24 	lx 	(4. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	14:35:16 	lx 	(4. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:35:16 	lx 	(4. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:35:16 	lx 	(4. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1
 - original query: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	14:35:16 	_lx_ExecuteSqlNew 	(4. palvelin)

plg4d.selectionToRecordArray sel = {
 [1] = {
  ["name_id"] = "_tab_co.json";
  ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
 };
 [2] = {
  ["name_id"] = "_tab_default.json";
  ["text_value"] = "{ \"tab\": [ { \"name\": \"Lista\", \"query_type\": \"\", \"query_name\": \"\", \"list_name\": \"Lista\" } ] }";
 };
};. 	9.12.2021 	14:35:16 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	9.12.2021 	14:40:29 	_lx_SERVER 	(5. tbl_ 8)

*** tcp close for sock 81, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	14:40:29 	lx 	(4. palvelin)

closing socket '81'. 	9.12.2021 	14:40:29 	lx 	(4. palvelin)

*** tcp close for sock 82, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	14:40:29 	lx 	(4. palvelin)

closing socket '82'. 	9.12.2021 	14:40:29 	lx 	(4. palvelin)

 -- Server statistics --
answerCount:          7
poll.fd_count:        1
pollCount:            57303
pollInCount:          7
pollOutCount:         0
pollCloseCount:       6
pollErrCount:         0
fd add/remove count:  9/8
totalBytesReceived:   5416
totalBytesSent:       0. 	9.12.2021 	14:40:29 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 83
. 	9.12.2021 	14:40:29 	lx 	(4. palvelin)

closing socket '83'. 	9.12.2021 	14:40:29 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x015aee1070. 	9.12.2021 	14:40:29 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x015aee1070, size: 400. 	9.12.2021 	14:40:29 	lx 	(4. palvelin)

--- server stopped ---. 	9.12.2021 	14:40:29 	lx 	(4. palvelin)

finalizer: free p1 	 cdata<void *>: 0x015aee1070. 	9.12.2021 	14:40:30 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	14:40:30 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	14:40:38 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	14:40:39 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	14:40:39 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	14:40:39 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	14:40:39 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	14:40:39 	lx 	(4. palvelin)

  database connect time: 0.0006 seconds. 	9.12.2021 	14:40:39 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	14:40:40 	lx 	(4. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	9.12.2021 	14:40:40 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	14:40:40 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0153e64250, size: 400. 	9.12.2021 	14:40:40 	lx 	(4. palvelin)

error: server has not been started - quit-lx-server. 	9.12.2021 	14:40:40 	lx 	(4. palvelin)

error: server has not been started - quit-lx-server. 	9.12.2021 	14:40:40 	_lx_SERVER 	(4. palvelin)

warning: -*-ERR: close socket is nil
. 	9.12.2021 	14:40:40 	lx 	(4. palvelin)

warning: -*-ERR: close socket is nil
. 	9.12.2021 	14:40:40 	lx 	(4. palvelin)

 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            0
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  0/0
totalBytesReceived:   0
totalBytesSent:       0. 	9.12.2021 	14:40:40 	lx 	(4. palvelin)

--- server stopped ---. 	9.12.2021 	14:40:40 	lx 	(4. palvelin)

finalizer: free p1 	 cdata<void *>: 0x0153e64250. 	9.12.2021 	14:40:40 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	14:40:40 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	14:41:55 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	14:41:57 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	14:41:57 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	14:41:57 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	14:41:57 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	14:41:57 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	9.12.2021 	14:41:57 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	14:41:57 	lx 	(4. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	9.12.2021 	14:41:57 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	14:41:57 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x015aeecc10, size: 400. 	9.12.2021 	14:41:57 	lx 	(4. palvelin)

error: server has not been started - quit-lx-server. 	9.12.2021 	14:41:57 	lx 	(4. palvelin)

error: server has not been started - quit-lx-server. 	9.12.2021 	14:41:57 	_lx_SERVER 	(4. palvelin)

warning: -*-ERR: close socket is nil
. 	9.12.2021 	14:41:57 	lx 	(4. palvelin)

warning: -*-ERR: close socket is nil
. 	9.12.2021 	14:41:57 	lx 	(4. palvelin)

 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            0
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  0/0
totalBytesReceived:   0
totalBytesSent:       0. 	9.12.2021 	14:41:57 	lx 	(4. palvelin)

--- server stopped ---. 	9.12.2021 	14:41:57 	lx 	(4. palvelin)

finalizer: free p1 	 cdata<void *>: 0x015aeecc10. 	9.12.2021 	14:41:57 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	14:41:57 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	14:42:50 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	14:42:51 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	14:42:52 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	14:42:52 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	14:42:52 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	14:42:52 	lx 	(4. palvelin)

  database connect time: 0.0009 seconds. 	9.12.2021 	14:42:52 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	14:42:52 	lx 	(4. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	9.12.2021 	14:42:52 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	14:42:52 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x013ca80bd0, size: 400. 	9.12.2021 	14:42:52 	lx 	(4. palvelin)

error: server has not been started - quit-lx-server. 	9.12.2021 	14:42:52 	lx 	(4. palvelin)

error: server has not been started - quit-lx-server. 	9.12.2021 	14:42:52 	_lx_SERVER 	(4. palvelin)

warning: -*-ERR: close socket is nil
. 	9.12.2021 	14:42:52 	lx 	(4. palvelin)

warning: -*-ERR: close socket is nil
. 	9.12.2021 	14:42:52 	lx 	(4. palvelin)

 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            0
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  0/0
totalBytesReceived:   0
totalBytesSent:       0. 	9.12.2021 	14:42:52 	lx 	(4. palvelin)

--- server stopped ---. 	9.12.2021 	14:42:52 	lx 	(4. palvelin)

finalizer: free p1 	 cdata<void *>: 0x013ca80bd0. 	9.12.2021 	14:42:52 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	14:42:52 	_lx_SERVER 	(4. palvelin)

Tcp palvelin 2 ei ole käynnissä. 	9.12.2021 	14:43:03 	_lx_SERVER 	(5. tbl_ 8)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	14:43:09 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	14:43:10 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	14:43:10 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	14:43:10 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	14:43:10 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	14:43:10 	lx 	(4. palvelin)

  database connect time: 0.0002 seconds. 	9.12.2021 	14:43:10 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	14:43:10 	lx 	(4. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	9.12.2021 	14:43:10 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	14:43:10 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x015aede6f0, size: 400. 	9.12.2021 	14:43:10 	lx 	(4. palvelin)

error: server has not been started - quit-lx-server. 	9.12.2021 	14:43:10 	lx 	(4. palvelin)

error: server has not been started - quit-lx-server. 	9.12.2021 	14:43:10 	_lx_SERVER 	(4. palvelin)

warning: -*-ERR: close socket is nil
. 	9.12.2021 	14:43:10 	lx 	(4. palvelin)

warning: -*-ERR: close socket is nil
. 	9.12.2021 	14:43:10 	lx 	(4. palvelin)

 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            0
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  0/0
totalBytesReceived:   0
totalBytesSent:       0. 	9.12.2021 	14:43:10 	lx 	(4. palvelin)

--- server stopped ---. 	9.12.2021 	14:43:10 	lx 	(4. palvelin)

finalizer: free p1 	 cdata<void *>: 0x015aede6f0. 	9.12.2021 	14:43:10 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	14:43:10 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	14:43:25 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	14:43:26 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	14:43:26 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	14:43:26 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	14:43:26 	lx 	(1. Application process)

  database connect time: 0.0003 seconds. 	9.12.2021 	14:43:26 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	14:43:26 	lx 	(1. Application process)

Tcp server 2 start check: /Users/pasi/nc/nc-server/lib/selection.lua:15: module 'plg4d4d' not found:
	no field package.preload['plg4d4d']
	no file '/Users/pasi/nc/nc-server/plg4d4d.lua'
	no file '/Users/pasi/nc/nc-server/plg4d4d.lx'
	no file '/Users/pasi/nc/nc-server/../plg4d4d.lua'
	no file '/Users/pasi/nc/nc-server/../plg4d4d.lx'
	no file '/Users/pasi/nc/nc-server/../../plg4d4d.lua'
	no file '/Users/pasi/nc/nc-server/../../plg4d4d.lx'
	no file '/Users/pasi/nc/nc-server/../../../plg4d4d.lua'
	no file '/Users/pasi/nc/nc-server/../../../plg4d4d.lx'
	no file '/Users/pasi/nc/nc-server/lib/plg4d4d.lua'
	no file '/Users/pasi/nc/nc-server/lib/plg4d4d.lx'
	no file '/Users/pasi/nc/nc-server/lib/db/plg4d4d.lua'
	no file '/Users/pasi/nc/nc-server/lib/db/plg4d4d.lx'
	no file '/Users/pasi/nc/nc-server/lib/plg4d4d/init.lua'
	no file '/Users/pasi/nc/nc-server/lib/plg4d4d/init.lx'
	no file '/Users/pasi/nc/nc-server/lib/plg4d4d/plg4d4d.lua'
	no file '/Users/pasi/nc/nc-server/lib/plg4d4d/plg4d4d.lx'
	no file '/Users/pasi/nc/nc-server/../lib/plg4d4d.lua'
	no file '/Users/pasi/nc/nc-server/../lib/plg4d4d.lx'
	no file '/Users/pasi/nc/nc-server/../lib/db/plg4d4d.lua'
	no file '/Users/pasi/nc/nc-server/../lib/db/plg4d4d.lx'
	no file '/Users/pasi/nc/nc-server/../lib/plg4d4d/init.lua'
	no file '/Users/pasi/nc/nc-server/../lib/plg4d4d/init.lx'
	no file '/Users/pasi/nc/nc-server/../lib/plg4d4d/plg4d4d.lua'
	no file '/Users/pasi/nc/nc-server/../lib/plg4d4d/plg4d4d.lx'
	no file '/Users/pasi/nc/nc-server/../../lib/plg4d4d.lua'
	no file '/Users/pasi/nc/nc-server/../../lib/plg4d4d.lx'
	no file '/Users/pasi/nc/nc-server/../../lib/db/plg4d4d.lua'
	no file '/Users/pasi/nc/nc-server/../../lib/db/plg4d4d.lx'
	no file '/Users/pasi/nc/nc-server/../../lib/plg4d4d/init.lua'
	no file '/Users/pasi/nc/nc-server/../../lib/plg4d4d/init.lx'
	no file '/Users/pasi/nc/nc-server/../../lib/plg4d4d/plg4d4d.lua'
	no file '/Users/pasi/nc/nc-server/../../lib/plg4d4d/plg4d4d.lx'
	no file '/Users/pasi/nc/nc-server/../nc-server/lib/plg4d4d.lua'
	no file '/Users/pasi/nc/nc-server/../nc-server/lib/plg4d4d.lx'
	no file '/Users/pasi/nc/nc-server/../nc-server/lib/db/plg4d4d.lua'
	no file '/Users/pasi/nc/nc-server/../nc-server/lib/db/plg4d4d.lx'
	no file '/Users/pasi/nc/nc-server/../nc-server/lib/plg4d4d/init.lua'
	no file '/Users/pasi/nc/nc-server/../nc-server/lib/plg4d4d/init.lx'
	no file '/Users/pasi/nc/nc-server/../nc-server/lib/plg4d4d/plg4d4d.lua'
	no file '/Users/pasi/nc/nc-server/../nc-server/lib/plg4d4d/plg4d4d.lx'
	no file '/Users/pasi/nc/nc-server/../../nc-server/lib/plg4d4d.lua'
	no file '/Users/pasi/nc/nc-server/../../nc-server/lib/plg4d4d.lx'
	no file '/Users/pasi/nc/nc-server/../../nc-server/lib/db/plg4d4d.lua'
	no file '/Users/pasi/nc/nc-server/../../nc-server/lib/db/plg4d4d.lx'
	no file '/Users/pasi/nc/nc-server/../../nc-server/lib/plg4d4d/init.lua'
	no file '/Users/pasi/nc/nc-server/../../nc-server/lib/plg4d4d/init.lx'
	no file '/Users/pasi/nc/nc-server/../../nc-server/lib/plg4d4d/plg4d4d.lua'
	no file '/Users/pasi/nc/nc-server/../../nc-server/lib/plg4d4d/plg4d4d.lx'
	no file '/Users/pasi/nc/nc-server/tool/lib/plg4d4d.lua'
	no file '/Users/pasi/nc/nc-server/tool/lib/plg4d4d.lx'
	no file '/Users/pasi/nc/nc-server/tool/lib/plg4d4d/init.lua'
	no file '/Users/pasi/nc/nc-server/tool/lib/plg4d4d/init.lx'
	no file '/Users/pasi/nc/nc-server/tool/lib/plg4d4d/plg4d4d.lua'
	no file '/Users/pasi/nc/nc-server/tool/lib/plg4d4d/plg4d4d.lx'
	no file '/Users/pasi/nc/nc-server/nc/plg4d4d.lua'
	no file '/Users/pasi/nc/nc-server/nc/plg4d4d.lx'
	no file '/Users/pasi/nc/nc-server/../nc/plg4d4d.lua'
	no file '/Users/pasi/nc/nc-server/../nc/plg4d4d.lx'
	no file '/Users/pasi/nc/nc-server/../../nc/plg4d4d.lua'
	no file '/Users/pasi/nc/nc-server/../../nc/plg4d4d.lx'
	no file '/Users/pasi/nc/nc-server/preference/form/plg4d4d.lua'
	no file '/Users/pasi/nc/nc-server/preference/form/plg4d4d.lx'
	no file '/Users/pasi/nc/nc-server/../preference/form/plg4d4d.lua'
	no file '/Users/pasi/nc/nc-server/../preference/form/plg4d4d.lx'
	no file '/Users/pasi/nc/nc-server/manager/plg4d4d.lua'
	no file '/Users/pasi/nc/nc-server/manager/plg4d4d.lx'
	no file '/Users/pasi/nc/nc-server/manager/4d/plg4d4d.lua'
	no file '/Users/pasi/nc/nc-server/manager/4d/plg4d4d.lx'
	no file '/Users/pasi/nc/nc-server/bin/plg4d4d.so'
	no file '/Users/pasi/nc/nc-server/bin/bin_osx_arm64/plg4d4d.dylib'
	no file '/Users/pasi/nc/nc-server/../bin/bin_osx_arm64/plg4d4d.dylib'
	no file '/Users/pasi/nc/nc-server/../bin/bin_osx_arm64/plg4d4d.so'
	no file '/Users/pasi/nc/nc-server/../../bin/bin_osx_arm64/plg4d4d.dylib'
	no file '/Users/pasi/nc/nc-server/../../bin/bin_osx_arm64/plg4d4d.so'
	no file '/Users/pasi/nc/nc-server/../../../bin/bin_osx_arm64/plg4d4d.dylib'
	no file '/Users/pasi/nc/nc-server/../../../bin/bin_osx_arm64/plg4d4d.so'. 	9.12.2021 	14:43:26 	_lx_SERVER 	(1. Application process)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	14:44:01 	_lx_SERVER 	(7. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	14:44:02 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	14:44:02 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	14:44:02 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	14:44:02 	lx 	(7. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	14:44:02 	lx 	(7. palvelin)

  database connect time: 0.0003 seconds. 	9.12.2021 	14:44:02 	lx 	(7. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	14:44:02 	lx 	(7. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	9.12.2021 	14:44:02 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	14:44:02 	lx 	(7. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01375b3d50, size: 400. 	9.12.2021 	14:44:02 	lx 	(7. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	14:44:02 	lx 	(7. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	9.12.2021 	14:44:02 	lx 	(7. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	14:44:02 	lx 	(7. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	9.12.2021 	14:44:02 	lx 	(7. palvelin)

2. Loading plugin: nc/worker/query_worker. 	9.12.2021 	14:44:03 	lx 	(7. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	9.12.2021 	14:44:03 	lx 	(7. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	9.12.2021 	14:44:03 	lx 	(7. palvelin)

All plugins have been loaded. 	9.12.2021 	14:44:03 	lx 	(7. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json. 	9.12.2021 	14:44:03 	lx 	(7. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	9.12.2021 	14:44:03 	lx 	(7. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	14:44:03 	lx 	(7. palvelin)

Mac address: f84d896921dc. 	9.12.2021 	14:44:03 	lx 	(7. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	9.12.2021 	14:44:03 	lx 	(7. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.1.15:5949/
                          https://127.0.0.1:5949/, https://192.168.1.15:5949/. 	9.12.2021 	14:44:03 	lx 	(7. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.1.15:5949/. 	9.12.2021 	14:44:03 	lx 	(7. palvelin)

--- server started in 0.005 seconds, 2021-12-09 14:44:03, used memory 3067.5 kb --- 	 5. 	9.12.2021 	14:44:03 	lx 	(7. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	9.12.2021 	14:44:03 	lx 	(7. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-09 14:44:18
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 509
Content-Uncompressed-Length: 584

LZ4. 	9.12.2021 	14:44:18 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	14:44:18 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	14:44:18 	lx 	(7. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	9.12.2021 	14:44:18 	lx 	(7. palvelin)

  database connect time: 0.0001 seconds. 	9.12.2021 	14:44:18 	lx 	(7. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	9.12.2021 	14:44:18 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:44:18 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:44:18 	lx 	(7. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1
 - original query: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	14:44:18 	_lx_ExecuteSqlNew 	(7. palvelin)

plg4d.selectionToRecordArray sel = {
 [1] = {
  ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
  ["name_id"] = "_tab_co.json";
 };
 [2] = {
  ["text_value"] = "{ \"tab\": [ { \"name\": \"Lista\", \"query_type\": \"\", \"query_name\": \"\", \"list_name\": \"Lista\" } ] }";
  ["name_id"] = "_tab_default.json";
 };
};. 	9.12.2021 	14:44:18 	lx 	(7. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	9.12.2021 	14:45:20 	_lx_SERVER 	(4. tbl_ 3)

*** tcp close for sock 76, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	14:45:20 	lx 	(7. palvelin)

closing socket '76'. 	9.12.2021 	14:45:20 	lx 	(7. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	14:45:20 	lx 	(7. palvelin)

closing socket '77'. 	9.12.2021 	14:45:20 	lx 	(7. palvelin)

 -- Server statistics --
answerCount:          1
poll.fd_count:        1
pollCount:            5489
pollInCount:          1
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  3/2
totalBytesReceived:   779
totalBytesSent:       0. 	9.12.2021 	14:45:20 	lx 	(7. palvelin)

warning: socket type 'number' is not a table, socket number: 78
. 	9.12.2021 	14:45:20 	lx 	(7. palvelin)

closing socket '78'. 	9.12.2021 	14:45:20 	lx 	(7. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x01375b3d50. 	9.12.2021 	14:45:20 	lx 	(7. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01375b3d50, size: 400. 	9.12.2021 	14:45:20 	lx 	(7. palvelin)

--- server stopped ---. 	9.12.2021 	14:45:20 	lx 	(7. palvelin)

finalizer: free p1 	 cdata<void *>: 0x01375b3d50. 	9.12.2021 	14:45:20 	lx 	(7. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	14:45:20 	_lx_SERVER 	(7. palvelin)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	14:45:26 	_lx_SERVER 	(7. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	14:45:28 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	14:45:28 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	14:45:28 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	14:45:28 	lx 	(7. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	14:45:28 	lx 	(7. palvelin)

  database connect time: 0.0003 seconds. 	9.12.2021 	14:45:28 	lx 	(7. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	14:45:28 	lx 	(7. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	9.12.2021 	14:45:28 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	14:45:28 	lx 	(7. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01356daa70, size: 400. 	9.12.2021 	14:45:28 	lx 	(7. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	14:45:28 	lx 	(7. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	9.12.2021 	14:45:28 	lx 	(7. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	14:45:28 	lx 	(7. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	9.12.2021 	14:45:28 	lx 	(7. palvelin)

2. Loading plugin: nc/worker/query_worker. 	9.12.2021 	14:45:28 	lx 	(7. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	9.12.2021 	14:45:28 	lx 	(7. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	9.12.2021 	14:45:28 	lx 	(7. palvelin)

All plugins have been loaded. 	9.12.2021 	14:45:28 	lx 	(7. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json. 	9.12.2021 	14:45:28 	lx 	(7. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	9.12.2021 	14:45:28 	lx 	(7. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	14:45:28 	lx 	(7. palvelin)

Mac address: f84d896921dc. 	9.12.2021 	14:45:28 	lx 	(7. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	9.12.2021 	14:45:28 	lx 	(7. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.1.15:5949/
                          https://127.0.0.1:5949/, https://192.168.1.15:5949/. 	9.12.2021 	14:45:28 	lx 	(7. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.1.15:5949/. 	9.12.2021 	14:45:28 	lx 	(7. palvelin)

--- server started in 0.002 seconds, 2021-12-09 14:45:28, used memory 3011.3 kb --- 	 5. 	9.12.2021 	14:45:28 	lx 	(7. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	9.12.2021 	14:45:28 	lx 	(7. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-09 14:45:41
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 512
Content-Uncompressed-Length: 584

LZ4. 	9.12.2021 	14:45:41 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	14:45:41 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	14:45:41 	lx 	(7. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	9.12.2021 	14:45:41 	lx 	(7. palvelin)

  database connect time: 0.0001 seconds. 	9.12.2021 	14:45:41 	lx 	(7. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	9.12.2021 	14:45:41 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:45:41 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:45:41 	lx 	(7. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1
 - original query: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	14:45:41 	_lx_ExecuteSqlNew 	(7. palvelin)

plg4d.selectionToRecordArray sel = {
 [1] = {
  ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
  ["name_id"] = "_tab_co.json";
 };
 [2] = {
  ["text_value"] = "{ \"tab\": [ { \"name\": \"Lista\", \"query_type\": \"\", \"query_name\": \"\", \"list_name\": \"Lista\" } ] }";
  ["name_id"] = "_tab_default.json";
 };
};. 	9.12.2021 	14:45:41 	lx 	(7. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	9.12.2021 	14:47:38 	_lx_SERVER 	(4. tbl_ 3)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	14:47:38 	lx 	(7. palvelin)

closing socket '77'. 	9.12.2021 	14:47:38 	lx 	(7. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	14:47:38 	lx 	(7. palvelin)

closing socket '78'. 	9.12.2021 	14:47:38 	lx 	(7. palvelin)

 -- Server statistics --
answerCount:          1
poll.fd_count:        1
pollCount:            9305
pollInCount:          1
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  3/2
totalBytesReceived:   782
totalBytesSent:       0. 	9.12.2021 	14:47:38 	lx 	(7. palvelin)

warning: socket type 'number' is not a table, socket number: 79
. 	9.12.2021 	14:47:38 	lx 	(7. palvelin)

closing socket '79'. 	9.12.2021 	14:47:38 	lx 	(7. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x01356daa70. 	9.12.2021 	14:47:38 	lx 	(7. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01356daa70, size: 400. 	9.12.2021 	14:47:38 	lx 	(7. palvelin)

--- server stopped ---. 	9.12.2021 	14:47:38 	lx 	(7. palvelin)

finalizer: free p1 	 cdata<void *>: 0x01356daa70. 	9.12.2021 	14:47:38 	lx 	(7. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	14:47:38 	_lx_SERVER 	(7. palvelin)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	14:47:44 	_lx_SERVER 	(7. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	14:47:46 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	14:47:46 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	14:47:46 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	14:47:46 	lx 	(7. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	14:47:46 	lx 	(7. palvelin)

  database connect time: 0.0002 seconds. 	9.12.2021 	14:47:46 	lx 	(7. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	14:47:46 	lx 	(7. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	9.12.2021 	14:47:46 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	14:47:46 	lx 	(7. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0137372fe0, size: 400. 	9.12.2021 	14:47:46 	lx 	(7. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	14:47:46 	lx 	(7. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	9.12.2021 	14:47:46 	lx 	(7. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	14:47:46 	lx 	(7. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	9.12.2021 	14:47:46 	lx 	(7. palvelin)

2. Loading plugin: nc/worker/query_worker. 	9.12.2021 	14:47:46 	lx 	(7. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	9.12.2021 	14:47:46 	lx 	(7. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	9.12.2021 	14:47:46 	lx 	(7. palvelin)

All plugins have been loaded. 	9.12.2021 	14:47:46 	lx 	(7. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json. 	9.12.2021 	14:47:46 	lx 	(7. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	9.12.2021 	14:47:46 	lx 	(7. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	14:47:46 	lx 	(7. palvelin)

Mac address: f84d896921dc. 	9.12.2021 	14:47:46 	lx 	(7. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	9.12.2021 	14:47:46 	lx 	(7. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.1.15:5949/
                          https://127.0.0.1:5949/, https://192.168.1.15:5949/. 	9.12.2021 	14:47:46 	lx 	(7. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.1.15:5949/. 	9.12.2021 	14:47:46 	lx 	(7. palvelin)

--- server started in 0.002 seconds, 2021-12-09 14:47:46, used memory 2994.0 kb --- 	 5. 	9.12.2021 	14:47:46 	lx 	(7. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	9.12.2021 	14:47:46 	lx 	(7. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-09 14:48:01
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 507
Content-Uncompressed-Length: 584

LZ4. 	9.12.2021 	14:48:01 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	14:48:01 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	14:48:01 	lx 	(7. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	9.12.2021 	14:48:01 	lx 	(7. palvelin)

  database connect time: 0.0002 seconds. 	9.12.2021 	14:48:01 	lx 	(7. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	9.12.2021 	14:48:01 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:48:01 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:48:01 	lx 	(7. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1
 - original query: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	14:48:01 	_lx_ExecuteSqlNew 	(7. palvelin)

plg4d.selectionToRecordArray sel = {
 [1] = {
  ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
  ["name_id"] = "_tab_co.json";
 };
 [2] = {
  ["text_value"] = "{ \"tab\": [ { \"name\": \"Lista\", \"query_type\": \"\", \"query_name\": \"\", \"list_name\": \"Lista\" } ] }";
  ["name_id"] = "_tab_default.json";
 };
};. 	9.12.2021 	14:48:01 	lx 	(7. palvelin)

querySql4d() dsql.sqlExecuteUnsafe data = {
 [1] = {
  ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
  ["name_id"] = "_tab_co.json";
 };
 [2] = {
  ["text_value"] = "{ \"tab\": [ { \"name\": \"Lista\", \"query_type\": \"\", \"query_name\": \"\", \"list_name\": \"Lista\" } ] }";
  ["name_id"] = "_tab_default.json";
 };
};. 	9.12.2021 	14:48:01 	lx 	(7. palvelin)

 1. answer time: 00:00:00.00154
  
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:48:01 	lx 	(7. palvelin)

*** tcp close for sock 80, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 777 bytes ***. 	9.12.2021 	14:49:34 	lx 	(7. palvelin)

closing socket '80'. 	9.12.2021 	14:49:34 	lx 	(7. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	9.12.2021 	14:49:43 	_lx_SERVER 	(4. tbl_ 3)

*** tcp close for sock 78, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	14:49:43 	lx 	(7. palvelin)

closing socket '78'. 	9.12.2021 	14:49:43 	lx 	(7. palvelin)

*** tcp close for sock 79, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	14:49:43 	lx 	(7. palvelin)

closing socket '79'. 	9.12.2021 	14:49:43 	lx 	(7. palvelin)

 -- Server statistics --
answerCount:          1
poll.fd_count:        0
pollCount:            8424
pollInCount:          2
pollOutCount:         0
pollCloseCount:       1
pollErrCount:         0
fd add/remove count:  3/3
totalBytesReceived:   777
totalBytesSent:       617. 	9.12.2021 	14:49:43 	lx 	(7. palvelin)

--- server stopped ---. 	9.12.2021 	14:49:43 	lx 	(7. palvelin)

finalizer: free p1 	 cdata<void *>: 0x0137372fe0. 	9.12.2021 	14:49:43 	lx 	(7. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	14:49:43 	_lx_SERVER 	(7. palvelin)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	14:49:48 	_lx_SERVER 	(7. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	14:49:50 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	14:49:50 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	14:49:50 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	14:49:50 	lx 	(7. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	14:49:50 	lx 	(7. palvelin)

  database connect time: 0.0003 seconds. 	9.12.2021 	14:49:50 	lx 	(7. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	14:49:50 	lx 	(7. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	9.12.2021 	14:49:50 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	14:49:50 	lx 	(7. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01356b4a60, size: 400. 	9.12.2021 	14:49:50 	lx 	(7. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	14:49:50 	lx 	(7. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	9.12.2021 	14:49:50 	lx 	(7. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	14:49:50 	lx 	(7. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	9.12.2021 	14:49:50 	lx 	(7. palvelin)

2. Loading plugin: nc/worker/query_worker. 	9.12.2021 	14:49:50 	lx 	(7. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	9.12.2021 	14:49:50 	lx 	(7. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	9.12.2021 	14:49:50 	lx 	(7. palvelin)

All plugins have been loaded. 	9.12.2021 	14:49:50 	lx 	(7. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json. 	9.12.2021 	14:49:50 	lx 	(7. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	9.12.2021 	14:49:50 	lx 	(7. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	14:49:50 	lx 	(7. palvelin)

Mac address: f84d896921dc. 	9.12.2021 	14:49:50 	lx 	(7. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	9.12.2021 	14:49:50 	lx 	(7. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.1.15:5949/
                          https://127.0.0.1:5949/, https://192.168.1.15:5949/. 	9.12.2021 	14:49:50 	lx 	(7. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.1.15:5949/. 	9.12.2021 	14:49:50 	lx 	(7. palvelin)

--- server started in 0.002 seconds, 2021-12-09 14:49:50, used memory 2993.7 kb --- 	 5. 	9.12.2021 	14:49:50 	lx 	(7. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	9.12.2021 	14:49:50 	lx 	(7. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-09 14:50:06
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 505
Content-Uncompressed-Length: 584

LZ4. 	9.12.2021 	14:50:06 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	14:50:06 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	14:50:06 	lx 	(7. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	9.12.2021 	14:50:06 	lx 	(7. palvelin)

  database connect time: 0.0001 seconds. 	9.12.2021 	14:50:06 	lx 	(7. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	9.12.2021 	14:50:06 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:50:06 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:50:06 	lx 	(7. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1
 - original query: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	14:50:06 	_lx_ExecuteSqlNew 	(7. palvelin)

querySql4d() dsql.sqlExecuteUnsafe data = {
 [1] = {
  ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
  ["name_id"] = "_tab_co.json";
 };
 [2] = {
  ["text_value"] = "{ \"tab\": [ { \"name\": \"Lista\", \"query_type\": \"\", \"query_name\": \"\", \"list_name\": \"Lista\" } ] }";
  ["name_id"] = "_tab_default.json";
 };
};. 	9.12.2021 	14:50:06 	lx 	(7. palvelin)

 1. answer time: 00:00:00.00097
  
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:50:06 	lx 	(7. palvelin)

*** tcp close for sock 81, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 775 bytes ***. 	9.12.2021 	14:51:40 	lx 	(7. palvelin)

closing socket '81'. 	9.12.2021 	14:51:40 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	14:51:52 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:51:52 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:51:52 	lx 	(7. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1
 - original query: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	14:51:52 	_lx_ExecuteSqlNew 	(7. palvelin)

querySql4d() dsql.sqlExecuteUnsafe data = {
 [1] = {
  ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
  ["name_id"] = "_tab_co.json";
 };
 [2] = {
  ["text_value"] = "{ \"tab\": [ { \"name\": \"Lista\", \"query_type\": \"\", \"query_name\": \"\", \"list_name\": \"Lista\" } ] }";
  ["name_id"] = "_tab_default.json";
 };
};. 	9.12.2021 	14:51:52 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'. 	9.12.2021 	14:52:21 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	14:52:21 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.... 	9.12.2021 	14:52:21 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.... 	9.12.2021 	14:52:21 	lx 	(7. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.record_id IS NOT NULL LIMIT 2000 INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.email, co.address, co.post_code, co.post_office, co.send_type, co.way_of_delivery, co.language, co.add_packing_cost, co.add_packing_material, co.info, co.creation_date, co.record_id, co.last_modification_date, co.type_ FROM company co  WHERE co.record_id IS NOT NULL  LIMIT 2000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14,:_lx_atExe15,:_lx_atExe16,:_lx_atExe17,:_lx_alExe1,:_lx_alExe2,:_lx_atExe18,:_lx_adExe1,:_lx_atExe19,:_lx_adExe2,:_lx_alExe3
 - result _lx_atExe1 size: 41, first value: 'ELSOINTU'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	14:52:21 	_lx_ExecuteSqlNew 	(7. palvelin)

*** tcp close for sock 81, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 176 bytes ***. 	9.12.2021 	14:52:37 	lx 	(7. palvelin)

closing socket '81'. 	9.12.2021 	14:52:37 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	14:52:45 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:52:45 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:52:46 	lx 	(7. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1
 - original query: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	14:52:46 	_lx_ExecuteSqlNew 	(7. palvelin)

querySql4d() dsql.sqlExecuteUnsafe data = {
 [1] = {
  ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
  ["name_id"] = "_tab_co.json";
 };
 [2] = {
  ["text_value"] = "{ \"tab\": [ { \"name\": \"Lista\", \"query_type\": \"\", \"query_name\": \"\", \"list_name\": \"Lista\" } ] }";
  ["name_id"] = "_tab_default.json";
 };
};. 	9.12.2021 	14:52:46 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'. 	9.12.2021 	14:52:46 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	14:52:46 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.... 	9.12.2021 	14:52:46 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.... 	9.12.2021 	14:52:46 	lx 	(7. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.record_id IS NOT NULL LIMIT 2000 INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.email, co.address, co.post_code, co.post_office, co.send_type, co.way_of_delivery, co.language, co.add_packing_cost, co.add_packing_material, co.info, co.creation_date, co.record_id, co.last_modification_date, co.type_ FROM company co  WHERE co.record_id IS NOT NULL  LIMIT 2000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14,:_lx_atExe15,:_lx_atExe16,:_lx_atExe17,:_lx_alExe1,:_lx_alExe2,:_lx_atExe18,:_lx_adExe1,:_lx_atExe19,:_lx_adExe2,:_lx_alExe3
 - result _lx_atExe1 size: 41, first value: 'ELSOINTU'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	14:52:46 	_lx_ExecuteSqlNew 	(7. palvelin)

*** tcp close for sock 81, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 176 bytes ***. 	9.12.2021 	14:53:04 	lx 	(7. palvelin)

closing socket '81'. 	9.12.2021 	14:53:04 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	14:53:28 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:53:28 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:53:28 	lx 	(7. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1
 - original query: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	14:53:28 	_lx_ExecuteSqlNew 	(7. palvelin)

querySql4d() dsql.sqlExecuteUnsafe data = {
 [1] = {
  ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
  ["name_id"] = "_tab_co.json";
 };
 [2] = {
  ["text_value"] = "{ \"tab\": [ { \"name\": \"Lista\", \"query_type\": \"\", \"query_name\": \"\", \"list_name\": \"Lista\" } ] }";
  ["name_id"] = "_tab_default.json";
 };
};. 	9.12.2021 	14:53:28 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'. 	9.12.2021 	14:53:39 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	14:53:39 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.... 	9.12.2021 	14:53:39 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.... 	9.12.2021 	14:53:39 	lx 	(7. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.record_id IS NOT NULL LIMIT 2000 INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.email, co.address, co.post_code, co.post_office, co.send_type, co.way_of_delivery, co.language, co.add_packing_cost, co.add_packing_material, co.info, co.creation_date, co.record_id, co.last_modification_date, co.type_ FROM company co  WHERE co.record_id IS NOT NULL  LIMIT 2000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14,:_lx_atExe15,:_lx_atExe16,:_lx_atExe17,:_lx_alExe1,:_lx_alExe2,:_lx_atExe18,:_lx_adExe1,:_lx_atExe19,:_lx_adExe2,:_lx_alExe3
 - result _lx_atExe1 size: 41, first value: 'ELSOINTU'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	14:53:39 	_lx_ExecuteSqlNew 	(7. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	9.12.2021 	14:55:11 	_lx_SERVER 	(4. tbl_ 3)

*** tcp close for sock 79, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	14:55:11 	lx 	(7. palvelin)

closing socket '79'. 	9.12.2021 	14:55:11 	lx 	(7. palvelin)

*** tcp close for sock 80, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	14:55:11 	lx 	(7. palvelin)

closing socket '80'. 	9.12.2021 	14:55:11 	lx 	(7. palvelin)

 -- Server statistics --
answerCount:          10
poll.fd_count:        1
pollCount:            22971
pollInCount:          11
pollOutCount:         0
pollCloseCount:       3
pollErrCount:         0
fd add/remove count:  6/5
totalBytesReceived:   8962
totalBytesSent:       6350. 	9.12.2021 	14:55:11 	lx 	(7. palvelin)

warning: socket type 'number' is not a table, socket number: 81
. 	9.12.2021 	14:55:11 	lx 	(7. palvelin)

closing socket '81'. 	9.12.2021 	14:55:11 	lx 	(7. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x01356b4a60. 	9.12.2021 	14:55:11 	lx 	(7. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01356b4a60, size: 400. 	9.12.2021 	14:55:11 	lx 	(7. palvelin)

--- server stopped ---. 	9.12.2021 	14:55:11 	lx 	(7. palvelin)

finalizer: free p1 	 cdata<void *>: 0x01356b4a60. 	9.12.2021 	14:55:11 	lx 	(7. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	14:55:11 	_lx_SERVER 	(7. palvelin)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	14:55:17 	_lx_SERVER 	(7. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	14:55:19 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	14:55:19 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	14:55:19 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	14:55:19 	lx 	(7. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	14:55:19 	lx 	(7. palvelin)

  database connect time: 0.0003 seconds. 	9.12.2021 	14:55:19 	lx 	(7. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	14:55:19 	lx 	(7. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	9.12.2021 	14:55:19 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	14:55:19 	lx 	(7. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01375b0d40, size: 400. 	9.12.2021 	14:55:19 	lx 	(7. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	14:55:19 	lx 	(7. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	9.12.2021 	14:55:19 	lx 	(7. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	14:55:19 	lx 	(7. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	9.12.2021 	14:55:19 	lx 	(7. palvelin)

2. Loading plugin: nc/worker/query_worker. 	9.12.2021 	14:55:19 	lx 	(7. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	9.12.2021 	14:55:19 	lx 	(7. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	9.12.2021 	14:55:19 	lx 	(7. palvelin)

All plugins have been loaded. 	9.12.2021 	14:55:19 	lx 	(7. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json. 	9.12.2021 	14:55:19 	lx 	(7. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	9.12.2021 	14:55:19 	lx 	(7. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	14:55:19 	lx 	(7. palvelin)

Mac address: f84d896921dc. 	9.12.2021 	14:55:19 	lx 	(7. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	9.12.2021 	14:55:19 	lx 	(7. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.1.15:5949/
                          https://127.0.0.1:5949/, https://192.168.1.15:5949/. 	9.12.2021 	14:55:19 	lx 	(7. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.1.15:5949/. 	9.12.2021 	14:55:19 	lx 	(7. palvelin)

--- server started in 0.003 seconds, 2021-12-09 14:55:19, used memory 2993.9 kb --- 	 5. 	9.12.2021 	14:55:19 	lx 	(7. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	9.12.2021 	14:55:19 	lx 	(7. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-09 14:55:52
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 508
Content-Uncompressed-Length: 584

LZ4. 	9.12.2021 	14:55:52 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	14:55:52 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	14:55:52 	lx 	(7. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	9.12.2021 	14:55:52 	lx 	(7. palvelin)

  database connect time: 0.0002 seconds. 	9.12.2021 	14:55:52 	lx 	(7. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	9.12.2021 	14:55:52 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:55:52 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:55:52 	lx 	(7. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1
 - original query: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	14:55:52 	_lx_ExecuteSqlNew 	(7. palvelin)

querySql4d() dsql.sqlExecuteUnsafe data = {
 [1] = {
  ["name_id"] = "_tab_co.json";
  ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
 };
 [2] = {
  ["name_id"] = "_tab_default.json";
  ["text_value"] = "{ \"tab\": [ { \"name\": \"Lista\", \"query_type\": \"\", \"query_name\": \"\", \"list_name\": \"Lista\" } ] }";
 };
};. 	9.12.2021 	14:55:52 	lx 	(7. palvelin)

 1. answer time: 00:00:00.00093
  
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:55:52 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'. 	9.12.2021 	14:55:59 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	14:57:05 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.... 	9.12.2021 	14:57:05 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.... 	9.12.2021 	14:57:05 	lx 	(7. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.record_id IS NOT NULL LIMIT 2000 INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.email, co.address, co.post_code, co.post_office, co.send_type, co.way_of_delivery, co.language, co.add_packing_cost, co.add_packing_material, co.info, co.creation_date, co.record_id, co.last_modification_date, co.type_ FROM company co  WHERE co.record_id IS NOT NULL  LIMIT 2000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14,:_lx_atExe15,:_lx_atExe16,:_lx_atExe17,:_lx_alExe1,:_lx_alExe2,:_lx_atExe18,:_lx_adExe1,:_lx_atExe19,:_lx_adExe2,:_lx_alExe3
 - result _lx_atExe1 size: 41, first value: 'ELSOINTU'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	14:57:05 	_lx_ExecuteSqlNew 	(7. palvelin)

*** tcp close for sock 82, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 182 bytes ***. 	9.12.2021 	14:57:15 	lx 	(7. palvelin)

closing socket '82'. 	9.12.2021 	14:57:15 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	14:57:30 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:57:30 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:57:30 	lx 	(7. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1
 - original query: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	14:57:30 	_lx_ExecuteSqlNew 	(7. palvelin)

querySql4d() dsql.sqlExecuteUnsafe data = {
 [1] = {
  ["name_id"] = "_tab_co.json";
  ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
 };
 [2] = {
  ["name_id"] = "_tab_default.json";
  ["text_value"] = "{ \"tab\": [ { \"name\": \"Lista\", \"query_type\": \"\", \"query_name\": \"\", \"list_name\": \"Lista\" } ] }";
 };
};. 	9.12.2021 	14:57:30 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'. 	9.12.2021 	14:57:32 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	14:57:33 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.... 	9.12.2021 	14:57:33 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.... 	9.12.2021 	14:57:33 	lx 	(7. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.record_id IS NOT NULL LIMIT 2000 INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.email, co.address, co.post_code, co.post_office, co.send_type, co.way_of_delivery, co.language, co.add_packing_cost, co.add_packing_material, co.info, co.creation_date, co.record_id, co.last_modification_date, co.type_ FROM company co  WHERE co.record_id IS NOT NULL  LIMIT 2000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14,:_lx_atExe15,:_lx_atExe16,:_lx_atExe17,:_lx_alExe1,:_lx_alExe2,:_lx_atExe18,:_lx_adExe1,:_lx_atExe19,:_lx_adExe2,:_lx_alExe3
 - result _lx_atExe1 size: 41, first value: 'ELSOINTU'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	14:57:33 	_lx_ExecuteSqlNew 	(7. palvelin)

*** tcp close for sock 82, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 190 bytes ***. 	9.12.2021 	14:57:43 	lx 	(7. palvelin)

closing socket '82'. 	9.12.2021 	14:57:43 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	14:57:57 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:57:57 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:57:57 	lx 	(7. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1
 - original query: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	14:57:57 	_lx_ExecuteSqlNew 	(7. palvelin)

querySql4d() dsql.sqlExecuteUnsafe data = {
 [1] = {
  ["name_id"] = "_tab_co.json";
  ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
 };
 [2] = {
  ["name_id"] = "_tab_default.json";
  ["text_value"] = "{ \"tab\": [ { \"name\": \"Lista\", \"query_type\": \"\", \"query_name\": \"\", \"list_name\": \"Lista\" } ] }";
 };
};. 	9.12.2021 	14:57:57 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'. 	9.12.2021 	14:58:02 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	14:58:02 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.... 	9.12.2021 	14:58:02 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.... 	9.12.2021 	14:58:02 	lx 	(7. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.record_id IS NOT NULL LIMIT 2000 INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.email, co.address, co.post_code, co.post_office, co.send_type, co.way_of_delivery, co.language, co.add_packing_cost, co.add_packing_material, co.info, co.creation_date, co.record_id, co.last_modification_date, co.type_ FROM company co  WHERE co.record_id IS NOT NULL  LIMIT 2000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14,:_lx_atExe15,:_lx_atExe16,:_lx_atExe17,:_lx_alExe1,:_lx_alExe2,:_lx_atExe18,:_lx_adExe1,:_lx_atExe19,:_lx_adExe2,:_lx_alExe3
 - result _lx_atExe1 size: 41, first value: 'ELSOINTU'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	14:58:02 	_lx_ExecuteSqlNew 	(7. palvelin)

*** tcp close for sock 82, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 195 bytes ***. 	9.12.2021 	14:58:11 	lx 	(7. palvelin)

closing socket '82'. 	9.12.2021 	14:58:11 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	14:58:41 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:58:41 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	14:58:41 	lx 	(7. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1
 - original query: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	14:58:41 	_lx_ExecuteSqlNew 	(7. palvelin)

querySql4d() dsql.sqlExecuteUnsafe data = {
 [1] = {
  ["name_id"] = "_tab_co.json";
  ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
 };
 [2] = {
  ["name_id"] = "_tab_default.json";
  ["text_value"] = "{ \"tab\": [ { \"name\": \"Lista\", \"query_type\": \"\", \"query_name\": \"\", \"list_name\": \"Lista\" } ] }";
 };
};. 	9.12.2021 	14:58:41 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'. 	9.12.2021 	14:58:47 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	14:59:30 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.... 	9.12.2021 	14:59:30 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.... 	9.12.2021 	14:59:30 	lx 	(7. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.record_id IS NOT NULL LIMIT 2000 INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.email, co.address, co.post_code, co.post_office, co.send_type, co.way_of_delivery, co.language, co.add_packing_cost, co.add_packing_material, co.info, co.creation_date, co.record_id, co.last_modification_date, co.type_ FROM company co  WHERE co.record_id IS NOT NULL  LIMIT 2000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14,:_lx_atExe15,:_lx_atExe16,:_lx_atExe17,:_lx_alExe1,:_lx_alExe2,:_lx_atExe18,:_lx_adExe1,:_lx_atExe19,:_lx_adExe2,:_lx_alExe3
 - result _lx_atExe1 size: 41, first value: 'ELSOINTU'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	14:59:30 	_lx_ExecuteSqlNew 	(7. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	9.12.2021 	15:13:04 	_lx_SERVER 	(4. tbl_ 3)

*** tcp close for sock 80, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	15:13:04 	lx 	(7. palvelin)

closing socket '80'. 	9.12.2021 	15:13:04 	lx 	(7. palvelin)

*** tcp close for sock 81, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	15:13:04 	lx 	(7. palvelin)

closing socket '81'. 	9.12.2021 	15:13:04 	lx 	(7. palvelin)

 -- Server statistics --
answerCount:          12
poll.fd_count:        1
pollCount:            50836
pollInCount:          12
pollOutCount:         0
pollCloseCount:       3
pollErrCount:         0
fd add/remove count:  6/5
totalBytesReceived:   10976
totalBytesSent:       7597. 	9.12.2021 	15:13:04 	lx 	(7. palvelin)

warning: socket type 'number' is not a table, socket number: 83
. 	9.12.2021 	15:13:04 	lx 	(7. palvelin)

closing socket '83'. 	9.12.2021 	15:13:04 	lx 	(7. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x01375b0d40. 	9.12.2021 	15:13:04 	lx 	(7. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01375b0d40, size: 400. 	9.12.2021 	15:13:04 	lx 	(7. palvelin)

--- server stopped ---. 	9.12.2021 	15:13:04 	lx 	(7. palvelin)

finalizer: free p1 	 cdata<void *>: 0x01375b0d40. 	9.12.2021 	15:13:04 	lx 	(7. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	15:13:04 	_lx_SERVER 	(7. palvelin)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	15:13:11 	_lx_SERVER 	(7. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	15:13:12 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	15:13:12 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	15:13:12 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	15:13:12 	lx 	(7. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	15:13:12 	lx 	(7. palvelin)

  database connect time: 0.0002 seconds. 	9.12.2021 	15:13:12 	lx 	(7. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	15:13:12 	lx 	(7. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	9.12.2021 	15:13:12 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	15:13:12 	lx 	(7. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01375b3d50, size: 400. 	9.12.2021 	15:13:13 	lx 	(7. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	15:13:13 	lx 	(7. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	9.12.2021 	15:13:13 	lx 	(7. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	15:13:13 	lx 	(7. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	9.12.2021 	15:13:13 	lx 	(7. palvelin)

2. Loading plugin: nc/worker/query_worker. 	9.12.2021 	15:13:13 	lx 	(7. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	9.12.2021 	15:13:13 	lx 	(7. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	9.12.2021 	15:13:13 	lx 	(7. palvelin)

All plugins have been loaded. 	9.12.2021 	15:13:13 	lx 	(7. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json. 	9.12.2021 	15:13:13 	lx 	(7. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	9.12.2021 	15:13:13 	lx 	(7. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	15:13:13 	lx 	(7. palvelin)

Mac address: f84d896921dc. 	9.12.2021 	15:13:13 	lx 	(7. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	9.12.2021 	15:13:13 	lx 	(7. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.1.15:5949/
                          https://127.0.0.1:5949/, https://192.168.1.15:5949/. 	9.12.2021 	15:13:13 	lx 	(7. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.1.15:5949/. 	9.12.2021 	15:13:13 	lx 	(7. palvelin)

--- server started in 0.002 seconds, 2021-12-09 15:13:13, used memory 3010.6 kb --- 	 5. 	9.12.2021 	15:13:13 	lx 	(7. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	9.12.2021 	15:13:13 	lx 	(7. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-09 15:13:35
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 516
Content-Uncompressed-Length: 584

LZ4. 	9.12.2021 	15:13:35 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	15:13:35 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	15:13:35 	lx 	(7. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	9.12.2021 	15:13:35 	lx 	(7. palvelin)

  database connect time: 0.0002 seconds. 	9.12.2021 	15:13:35 	lx 	(7. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	9.12.2021 	15:13:35 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	15:13:35 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	15:13:35 	lx 	(7. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1
 - original query: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	15:13:35 	_lx_ExecuteSqlNew 	(7. palvelin)

plg4d.selectionToArrayTable: arrName = {
 [1] = "_lx_atExe1";
 [2] = "_lx_atExe2";
};. 	9.12.2021 	15:13:35 	lx 	(7. palvelin)

plg4d.selectionToArrayTable: fieldName = {
 [1] = "name_id";
 [2] = "text_value";
};. 	9.12.2021 	15:13:35 	lx 	(7. palvelin)

plg4d.selectionToArrayTable: ret = {
 [1] = {
  ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
  ["name_id"] = "_tab_co.json";
 };
 [2] = {
  ["text_value"] = "{ \"tab\": [ { \"name\": \"Lista\", \"query_type\": \"\", \"query_name\": \"\", \"list_name\": \"Lista\" } ] }";
  ["name_id"] = "_tab_default.json";
 };
};. 	9.12.2021 	15:13:35 	lx 	(7. palvelin)

 1. answer time: 00:00:00.00124
  
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	15:13:35 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'. 	9.12.2021 	15:13:43 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	15:13:43 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.... 	9.12.2021 	15:13:43 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.... 	9.12.2021 	15:13:43 	lx 	(7. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.record_id IS NOT NULL LIMIT 2000 INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.email, co.address, co.post_code, co.post_office, co.send_type, co.way_of_delivery, co.language, co.add_packing_cost, co.add_packing_material, co.info, co.creation_date, co.record_id, co.last_modification_date, co.type_ FROM company co  WHERE co.record_id IS NOT NULL  LIMIT 2000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14,:_lx_atExe15,:_lx_atExe16,:_lx_atExe17,:_lx_alExe1,:_lx_alExe2,:_lx_atExe18,:_lx_adExe1,:_lx_atExe19,:_lx_adExe2,:_lx_alExe3
 - result _lx_atExe1 size: 41, first value: 'ELSOINTU'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	15:13:43 	_lx_ExecuteSqlNew 	(7. palvelin)

plg4d.selectionToArrayTable: arrName = {
 [1] = "_lx_atExe1";
 [2] = "_lx_atExe2";
 [3] = "_lx_atExe3";
 [4] = "_lx_atExe4";
 [5] = "_lx_atExe5";
 [6] = "_lx_atExe6";
 [7] = "_lx_atExe7";
 [8] = "_lx_atExe8";
 [9] = "_lx_atExe9";
 [10] = "_lx_atExe10";
 [11] = "_lx_atExe11";
 [12] = "_lx_atExe12";
 [13] = "_lx_atExe13";
 [14] = "_lx_atExe14";
 [15] = "_lx_atExe15";
 [16] = "_lx_atExe16";
 [17] = "_lx_atExe17";
 [18] = "_lx_alExe1";
 [19] = "_lx_alExe2";
 [20] = "_lx_atExe18";
 [21] = "_lx_adExe1";
 [22] = "_lx_atExe19";
 [23] = "_lx_adExe2";
 [24] = "_lx_alExe3";
};. 	9.12.2021 	15:13:43 	lx 	(7. palvelin)

plg4d.selectionToArrayTable: fieldName = {
 [1] = "co.company_id";
 [2] = "co.name";
 [3] = "co.name_2";
 [4] = "co.country";
 [5] = "co.area";
 [6] = "co.transfer_id";
 [7] = "co.change_id";
 [8] = "co.text_address";
 [9] = "co.company_number";
 [10] = "co.default_sales_person_id";
 [11] = "co.email";
 [12] = "co.address";
 [13] = "co.post_code";
 [14] = "co.post_office";
 [15] = "co.send_type";
 [16] = "co.way_of_delivery";
 [17] = "co.language";
 [18] = "co.add_packing_cost";
 [19] = "co.add_packing_material";
 [20] = "co.info";
 [21] = "co.creation_date";
 [22] = "co.record_id";
 [23] = "co.last_modification_date";
 [24] = "co.type_";
};. 	9.12.2021 	15:13:43 	lx 	(7. palvelin)

plg4d.selectionToArrayTable: ret = {
 [1] = {
  ["co"] = {
   ["default_sales_person_id"] = "AK";
   ["name_2"] = "";
   ["type_"] = "0LL";
   ["record_id"] = "20050930.001951.ph2i9.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Elävä Sointu Oy\
PL 5\
28601 Pori";
   ["way_of_delivery"] = "Posti";
   ["address"] = "PL 5";
   ["language"] = "Englanti";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.dy1rc.co_  zzy0ae544bd03e1c09";
   ["name"] = "Elävä Sointu Oy";
   ["last_modification_date"] = "2021-12-23";
   ["creation_date"] = "0000-00-00";
   ["company_id"] = "ELSOINTU";
   ["add_packing_material"] = "0LL";
   ["send_type"] = "";
   ["post_office"] = "Pori";
   ["email"] = "etunimi.sukunimi@elsointu.fi";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0003";
   ["info"] = "Tuoteryhmät:MM+ST; ";
   ["area"] = " ";
   ["country"] = "";
   ["post_code"] = "28601";
  };
 };
 [2] = {
  ["co"] = {
   ["default_sales_person_id"] = "PM";
   ["name_2"] = "";
   ["type_"] = "0LL";
   ["record_id"] = "20050930.001951.rd2ia.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Viruspiste Oy\
PL 555\
20500 Turku";
   ["way_of_delivery"] = "Posti";
   ["address"] = "PL 555";
   ["language"] = "Suomi";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.e01re.co_  zzy0ae544bd03e1c09";
   ["name"] = "Viruspiste Oy";
   ["last_modification_date"] = "2021-08-19";
   ["creation_date"] = "0000-00-00";
   ["company_id"] = "VIRUSPISTE";
   ["add_packing_material"] = "0LL";
   ["send_type"] = "";
   ["post_office"] = "Turku";
   ["email"] = "";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0019";
   ["info"] = "[manual]";
   ["area"] = "";
   ["country"] = "";
   ["post_code"] = "20500";
  };
 };
 [3] = {
  ["co"] = {
   ["default_sales_person_id"] = "PM";
   ["name_2"] = "";
   ["type_"] = "0LL";
   ["record_id"] = "20050930.001951.rd2ib.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Mediatalo Oy\
Vasarakatu 2\
40100 Jyväskylä";
   ["way_of_delivery"] = "Sähköposti";
   ["address"] = "Vasarakatu 2";
   ["language"] = "";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.e01rg.co_  zzy0ae544bd03e1c09";
   ["name"] = "Mediatalo Oy";
   ["last_modification_date"] = "2022-05-12";
   ["creation_date"] = "0000-00-00";
   ["company_id"] = "MEDIAMUKS";
   ["add_packing_material"] = "0LL";
   ["send_type"] = "";
   ["post_office"] = "Jyväskylä";
   ["email"] = "";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0011";
   ["info"] = "zxc";
   ["area"] = "";
   ["country"] = "";
   ["post_code"] = "40100";
  };
 };
 [4] = {
  ["co"] = {
   ["default_sales_person_id"] = "PM";
   ["name_2"] = "";
   ["type_"] = "0LL";
   ["record_id"] = "20050930.001951.rd2ic.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Muovi Ltd\
Pyykkärintie 4\
01233 Vantaa\
0190045";
   ["way_of_delivery"] = "Posti";
   ["address"] = "Pyykkärintie 4";
   ["language"] = "";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.e11ri.co_  zzy0ae544bd03e1c09";
   ["name"] = "Muovi Ltd";
   ["last_modification_date"] = "2021-07-05";
   ["creation_date"] = "0000-00-00";
   ["company_id"] = "MUOVI";
   ["add_packing_material"] = "1LL";
   ["send_type"] = "";
   ["post_office"] = "Vantaa";
   ["email"] = "";
   ["add_packing_cost"] = "1LL";
   ["company_number"] = "0013";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "0190045";
   ["post_code"] = "01233";
  };
 };
 [5] = {
  ["co"] = {
   ["default_sales_person_id"] = "PM";
   ["name_2"] = "";
   ["type_"] = "0LL";
   ["record_id"] = "20050930.001951.re2id.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Graafinen Painatus\
Yliopiston 11 A 4\
40100 Jyväskylä";
   ["way_of_delivery"] = "Viedään";
   ["address"] = "Yliopiston 11 A 4";
   ["language"] = "";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.e21rk.co_  zzy0ae544bd03e1c09";
   ["name"] = "Graafinen Painatus";
   ["last_modification_date"] = "2022-01-24";
   ["creation_date"] = "0000-00-00";
   ["company_id"] = "GRAFHEAD";
   ["add_packing_material"] = "0LL";
   ["send_type"] = "";
   ["post_office"] = "Jyväskylä";
   ["email"] = "";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0005";
   ["info"] = "Tuoteryhmät:UM;<zx<zx";
   ["area"] = "";
   ["country"] = "";
   ["post_code"] = "40100";
  };
 };
 [6] = {
  ["co"] = {
   ["default_sales_person_id"] = "EK";
   ["name_2"] = "";
   ["type_"] = "0LL";
   ["record_id"] = "20050930.001951.re2ie.co_  zzy000c09f7bd0c503";
   ["text_address"] = "";
   ["way_of_delivery"] = "Matkahuolto";
   ["address"] = "";
   ["language"] = "";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.e31rm.co_  zzy0ae544bd03e1c09";
   ["name"] = "Satunnaisasiakas";
   ["last_modification_date"] = "2019-07-08";
   ["creation_date"] = "2016-12-29";
   ["company_id"] = "X";
   ["add_packing_material"] = "0LL";
   ["send_type"] = "";
   ["post_office"] = "";
   ["email"] = "";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0021";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["post_code"] = "";
  };
 };
 [7] = {
  ["co"] = {
   ["default_sales_person_id"] = "AK";
   ["name_2"] = "";
   ["type_"] = "4294967296LL";
   ["record_id"] = "20050930.001951.re2if.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Koko Kosmetiikka\
Mankkaa 21\
02256 Espoo\
003701141622015";
   ["way_of_delivery"] = "Viedään";
   ["address"] = "Mankkaa 21";
   ["language"] = "";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.e41ro.co_  zzy0ae544bd03e1c09";
   ["name"] = "Koko Kosmetiikka";
   ["last_modification_date"] = "2021-07-06";
   ["creation_date"] = "0000-00-00";
   ["company_id"] = "KOSMETIIKKA";
   ["add_packing_material"] = "0LL";
   ["send_type"] = "";
   ["post_office"] = "Espoo";
   ["email"] = "";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0009";
   ["info"] = " ";
   ["area"] = "";
   ["country"] = "003701141622015";
   ["post_code"] = "02256";
  };
 };
 [8] = {
  ["co"] = {
   ["default_sales_person_id"] = "PM";
   ["name_2"] = "";
   ["type_"] = "3LL";
   ["record_id"] = "20050930.001951.rf2ig.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Tukkukuoma Ky\
PL 27\
01200 Helsinki";
   ["way_of_delivery"] = "Polkupyörä";
   ["address"] = "PL 27";
   ["language"] = "";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.e51rq.co_  zzy0ae544bd03e1c09";
   ["name"] = "Tukkukuoma Ky";
   ["last_modification_date"] = "2022-01-04";
   ["creation_date"] = "0000-00-00";
   ["company_id"] = "TUKKU";
   ["add_packing_material"] = "0LL";
   ["send_type"] = "";
   ["post_office"] = "Helsinki";
   ["email"] = "";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0018";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["post_code"] = "01200";
  };
 };
 [9] = {
  ["co"] = {
   ["default_sales_person_id"] = "PM";
   ["name_2"] = "";
   ["type_"] = "0LL";
   ["record_id"] = "20050930.001951.rf2ii.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Manage Applications\
Laukaantie 4\
40320 Jyväskylä";
   ["way_of_delivery"] = "Posti";
   ["address"] = "Laukaantie 4";
   ["language"] = "Suomi";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.eb1rs.co_  zzy0ae544bd03e1c09";
   ["name"] = "Manage Applications";
   ["last_modification_date"] = "2021-07-25";
   ["creation_date"] = "0000-00-00";
   ["company_id"] = "MANAGE";
   ["add_packing_material"] = "0LL";
   ["send_type"] = "FV";
   ["post_office"] = "Jyväskylä";
   ["email"] = "manage@manageapp.com";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0010";
   ["info"] = " Finvoice testiä varten lisätty vapaa teksti kohdan teksti.";
   ["area"] = "";
   ["country"] = "";
   ["post_code"] = "40320";
  };
 };
 [10] = {
  ["co"] = {
   ["default_sales_person_id"] = "AK";
   ["name_2"] = "Taivas Rajana Oy";
   ["type_"] = "0LL";
   ["record_id"] = "20050930.001951.rg2ij.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Sky Is Limit Oy\
Taivas Rajana Oy\
Huopalahdenkatu 58 B\
00350 Helsinki";
   ["way_of_delivery"] = "Sähköposti + viedään";
   ["address"] = "Huopalahdenkatu 58 B";
   ["language"] = "";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.eg1ru.co_  zzy0ae544bd03e1c09";
   ["name"] = "Sky Is Limit Oy";
   ["last_modification_date"] = "2021-07-16";
   ["creation_date"] = "2015-09-06";
   ["company_id"] = "SKYISLIMIT";
   ["add_packing_material"] = "0LL";
   ["send_type"] = "";
   ["post_office"] = "Helsinki";
   ["email"] = "";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0015";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["post_code"] = "00350";
  };
 };
 [11] = {
  ["co"] = {
   ["default_sales_person_id"] = "AK";
   ["name_2"] = "";
   ["type_"] = "8589934592LL";
   ["record_id"] = "20050930.001951.rg2ik.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Puupää Oy\
Lastutie 3\
40320 Jyväskylä";
   ["way_of_delivery"] = "";
   ["address"] = "Lastutie 3";
   ["language"] = "";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.eh1rw.co_  zzy0ae544bd03e1c09";
   ["name"] = "Puupää Oy";
   ["last_modification_date"] = "2021-09-30";
   ["creation_date"] = "2018-08-06";
   ["company_id"] = "PUUPÄÄ";
   ["add_packing_material"] = "0LL";
   ["send_type"] = "FV";
   ["post_office"] = "Jyväskylä";
   ["email"] = "etunimi.sukunimi@puupää.com";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0014";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["post_code"] = "40320";
  };
 };
 [12] = {
  ["co"] = {
   ["default_sales_person_id"] = "PM";
   ["name_2"] = "IV-Tehdas";
   ["type_"] = "0LL";
   ["record_id"] = "20050930.001951.rg2il.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Tanjazz Oy, Brekdancers Lahti\
IV-Tehdas\
Tiekatu 8\
15100 Lahti";
   ["way_of_delivery"] = "";
   ["address"] = "Tiekatu 8";
   ["language"] = "1";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.ei1ry.co_  zzy0ae544bd03e1c09";
   ["name"] = "Tanjazz Oy, Brekdancers Lahti";
   ["last_modification_date"] = "2021-07-26";
   ["creation_date"] = "0000-00-00";
   ["company_id"] = "TANJAZZ";
   ["add_packing_material"] = "0LL";
   ["send_type"] = "";
   ["post_office"] = "Lahti";
   ["email"] = "";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0017";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["post_code"] = "15100";
  };
 };
 [13] = {
  ["co"] = {
   ["default_sales_person_id"] = "EK";
   ["name_2"] = "";
   ["type_"] = "12884901888LL";
   ["record_id"] = "20050930.001951.rg2im.co_  zzy000c09f7bd0c503";
   ["text_address"] = "ABC Koneet Oyj\
PL 10\
00381 Helsinki";
   ["way_of_delivery"] = "Kiitolinja";
   ["address"] = "PL 10";
   ["language"] = "";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.ej1s0.co_  zzy0ae544bd03e1c09";
   ["name"] = "ABC Koneet Oyj";
   ["last_modification_date"] = "2021-12-12";
   ["creation_date"] = "0000-00-00";
   ["company_id"] = "ABC KONEET";
   ["add_packing_material"] = "0LL";
   ["send_type"] = "FV";
   ["post_office"] = "Helsinki";
   ["email"] = "abc@abc.com";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "1001";
   ["info"] = "sdasassa\
<rahtivapaa>Rahtivapaa jos yli 15 kuutiota</rahtivapaa>\
dsfasdf\
asdfasdf.";
   ["area"] = "";
   ["country"] = "";
   ["post_code"] = "00381";
  };
 };
 [14] = {
  ["co"] = {
   ["default_sales_person_id"] = "EK";
   ["name_2"] = "";
   ["type_"] = "0LL";
   ["record_id"] = "20050930.001951.rh2in.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Wärttinä Finland Oy\
Salaminkatu 45\
20810 Turku";
   ["way_of_delivery"] = "Kiitolinja";
   ["address"] = "Salaminkatu 45";
   ["language"] = "1";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.ek1s2.co_  zzy0ae544bd03e1c09";
   ["name"] = "Wärttinä Finland Oy";
   ["last_modification_date"] = "2021-07-07";
   ["creation_date"] = "0000-00-00";
   ["company_id"] = "WÄRTTINÄ";
   ["add_packing_material"] = "0LL";
   ["send_type"] = "";
   ["post_office"] = "Turku";
   ["email"] = "";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0033";
   ["info"] = "Tuoteryhmät:*MM+*KM;";
   ["area"] = "";
   ["country"] = "";
   ["post_code"] = "20810";
  };
 };
 [15] = {
  ["co"] = {
   ["default_sales_person_id"] = "PM";
   ["name_2"] = "Isomoottoritehdas";
   ["type_"] = "0LL";
   ["record_id"] = "20050930.001951.rh2io.co_  zzy000c09f7bd0c503";
   ["text_address"] = "ABC Moottori Oyj\
Isomoottoritehdas\
PL 6\
65101 Vaasa";
   ["way_of_delivery"] = "Kiitolinja";
   ["address"] = "PL 6";
   ["language"] = "";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.ek1s4.co_  zzy0ae544bd03e1c09";
   ["name"] = "ABC Moottori Oyj";
   ["last_modification_date"] = "2021-11-26";
   ["creation_date"] = "2014-01-09";
   ["company_id"] = "ABC VAASA";
   ["add_packing_material"] = "0LL";
   ["send_type"] = "";
   ["post_office"] = "Vaasa";
   ["email"] = "";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "00002";
   ["info"] = "Tuoteryhmät:*MM+*KM;\
\
asd";
   ["area"] = "";
   ["country"] = "";
   ["post_code"] = "65101";
  };
 };
 [16] = {
  ["co"] = {
   ["default_sales_person_id"] = "AK";
   ["name_2"] = "";
   ["type_"] = "0LL";
   ["record_id"] = "20050930.001951.rh2ip.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Koneen Valo Oy\
Honkatie 11\
08500 Lohja As\
Suomi";
   ["way_of_delivery"] = "Kiitolinja";
   ["address"] = "Honkatie 11";
   ["language"] = "Englanti";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.el1s6.co_  zzy0ae544bd03e1c09";
   ["name"] = "Koneen Valo Oy";
   ["last_modification_date"] = "2022-01-13";
   ["creation_date"] = "2015-02-19";
   ["company_id"] = "KONEEN-VALO";
   ["add_packing_material"] = "0LL";
   ["send_type"] = "EDI";
   ["post_office"] = "Lohja As";
   ["email"] = "";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0008";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "Suomi";
   ["post_code"] = "08500";
  };
 };
 [17] = {
  ["co"] = {
   ["default_sales_person_id"] = "EK";
   ["name_2"] = "";
   ["type_"] = "0LL";
   ["record_id"] = "20050930.001951.ri2iq.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Susi Akselit Oy\
Autoilijantie 1. PL181\
13100 Hämeenlinna";
   ["way_of_delivery"] = "Kiitolinja";
   ["address"] = "Autoilijantie 1. PL181";
   ["language"] = "";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.eo1s8.co_  zzy0ae544bd03e1c09";
   ["name"] = "Susi Akselit Oy";
   ["last_modification_date"] = "2021-07-07";
   ["creation_date"] = "2016-10-28";
   ["company_id"] = "SUSI AKSELIT";
   ["add_packing_material"] = "0LL";
   ["send_type"] = "";
   ["post_office"] = "Hämeenlinna";
   ["email"] = "";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0016";
   ["info"] = "Susi Akselit Oy:n lisätietoja";
   ["area"] = "";
   ["country"] = "";
   ["post_code"] = "13100";
  };
 };
 [18] = {
  ["co"] = {
   ["default_sales_person_id"] = "AK";
   ["name_2"] = "";
   ["type_"] = "0LL";
   ["record_id"] = "20050930.001951.ri2ir.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Hexa Tuotteet Oy\
Herkkukatu 16\
40100 Jyväskylä";
   ["way_of_delivery"] = "Posti";
   ["address"] = "Herkkukatu 16";
   ["language"] = "";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.ep1sa.co_  zzy0ae544bd03e1c09";
   ["name"] = "Hexa Tuotteet Oy";
   ["last_modification_date"] = "2021-07-09";
   ["creation_date"] = "2019-02-22";
   ["company_id"] = "HEXA";
   ["add_packing_material"] = "0LL";
   ["send_type"] = "";
   ["post_office"] = "Jyväskylä";
   ["email"] = "info@hermextuotteet.fi";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0006";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["post_code"] = "40100";
  };
 };
 [19] = {
  ["co"] = {
   ["default_sales_person_id"] = "PM";
   ["name_2"] = "";
   ["type_"] = "0LL";
   ["record_id"] = "20050930.001951.ri2is.co_  zzy000c09f7bd0c503";
   ["text_address"] = "KeuKing Oy\
Keuruuntie 12 B 8\
42700 Keuruu\
Suomi";
   ["way_of_delivery"] = "";
   ["address"] = "Keuruuntie 12 B 8";
   ["language"] = "";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.eq1sc.co_  zzy0ae544bd03e1c09";
   ["name"] = "KeuKing Oy";
   ["last_modification_date"] = "2022-04-01";
   ["creation_date"] = "2021-03-18";
   ["company_id"] = "KEUKING";
   ["add_packing_material"] = "0LL";
   ["send_type"] = "";
   ["post_office"] = "Keuruu";
   ["email"] = "myynti@keuking.fi";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0007";
   ["info"] = "";
   ["area"] = "FI";
   ["country"] = "Suomi";
   ["post_code"] = "42700";
  };
 };
 [20] = {
  ["co"] = {
   ["default_sales_person_id"] = "PM";
   ["name_2"] = "";
   ["type_"] = "0LL";
   ["record_id"] = "20050930.001951.rj2it.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Perfecta Industrier Ab\
Box 903\
67129 Arvika\
SWEDEN";
   ["way_of_delivery"] = "";
   ["address"] = "Box 903";
   ["language"] = "SWE";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.eq1se.co_  zzy0ae544bd03e1c09";
   ["name"] = "Perfecta Industrier Ab";
   ["last_modification_date"] = "2021-08-20";
   ["creation_date"] = "2021-04-30";
   ["company_id"] = "PERFECTA";
   ["add_packing_material"] = "0LL";
   ["send_type"] = "";
   ["post_office"] = "Arvika";
   ["email"] = "";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0030";
   ["info"] = " ";
   ["area"] = "";
   ["country"] = "SWEDEN";
   ["post_code"] = "67129";
  };
 };
 [21] = {
  ["co"] = {
   ["default_sales_person_id"] = "PM";
   ["name_2"] = "";
   ["type_"] = "721554505728LL";
   ["record_id"] = "20050930.001951.rj2iu.co_  zzy000c09f7bd0c503";
   ["text_address"] = "M-talo";
   ["way_of_delivery"] = "";
   ["address"] = "";
   ["language"] = "";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.er1sg.co_  zzy0ae544bd03e1c09";
   ["name"] = "M-talo";
   ["last_modification_date"] = "2021-10-02";
   ["creation_date"] = "2021-04-30";
   ["company_id"] = "MTALO";
   ["add_packing_material"] = "721554505728LL";
   ["send_type"] = "";
   ["post_office"] = "";
   ["email"] = "";
   ["add_packing_cost"] = "721554505728LL";
   ["company_number"] = "0118";
   ["info"] = "\"Hello -.åäöÅÄÖ•ƒ€?®†√œøæ™π±≈∆ﬁª†µı¥¢‰¶‡√É∏≠…¸˛‹›≈≤÷◊°¡€\"";
   ["area"] = "";
   ["country"] = "";
   ["post_code"] = "";
  };
 };
 [22] = {
  ["co"] = {
   ["default_sales_person_id"] = "ANI";
   ["name_2"] = "Konttori";
   ["type_"] = "32370038940106867LL";
   ["record_id"] = "20050930.001951.rj2iv.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Sähkötuote Oy\
Konttori\
Silmukkatie 1\
65320 Vaasa";
   ["way_of_delivery"] = "Matkahuolto";
   ["address"] = "Silmukkatie 1";
   ["language"] = "";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.es1si.co_  zzy0ae544bd03e1c09";
   ["name"] = "Sähkötuote Oy";
   ["last_modification_date"] = "2021-10-30";
   ["creation_date"] = "2021-07-01";
   ["company_id"] = "SÄHKÖTUOTE";
   ["add_packing_material"] = "14637141177663600LL";
   ["send_type"] = "";
   ["post_office"] = "Vaasa";
   ["email"] = "myynti@sahkotuote.com";
   ["add_packing_cost"] = "4121699880889497142LL";
   ["company_number"] = "0004";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["post_code"] = "65320";
  };
 };
 [23] = {
  ["co"] = {
   ["default_sales_person_id"] = "ANI";
   ["name_2"] = "";
   ["type_"] = "27303566669709409LL";
   ["record_id"] = "20071106.122711.oo001.co_  zzy000c09f7bd0c506";
   ["text_address"] = "Pan-Oston Oy\
Teollisuustie 1\
15540 Villähde";
   ["way_of_delivery"] = "Noudetaan";
   ["address"] = "Teollisuustie 1";
   ["language"] = "";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.et1sk.co_  zzy0ae544bd03e1c09";
   ["name"] = "Pan-Oston Oy";
   ["last_modification_date"] = "2021-11-26";
   ["creation_date"] = "2021-08-20";
   ["company_id"] = "PAN-OSTON";
   ["add_packing_material"] = "28429466572030052LL";
   ["send_type"] = "";
   ["post_office"] = "Villähde";
   ["email"] = "";
   ["add_packing_cost"] = "4051325626252144179LL";
   ["company_number"] = "0094";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["post_code"] = "15540";
  };
 };
 [24] = {
  ["co"] = {
   ["default_sales_person_id"] = "PM";
   ["name_2"] = "";
   ["type_"] = "27303562371137549LL";
   ["record_id"] = "20080110.100434.nf001.co_  zzy00050bfd29f1e02";
   ["text_address"] = "Pullin Musiikki Oy (Finvoice Testi)\
Puukatu 2 F\
00112 Helsinki";
   ["way_of_delivery"] = "";
   ["address"] = "Puukatu 2 F";
   ["language"] = "";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.eu1sm.co_  zzy0ae544bd03e1c09";
   ["name"] = "Pullin Musiikki Oy (Finvoice Testi)";
   ["last_modification_date"] = "2021-08-20";
   ["creation_date"] = "2021-09-12";
   ["company_id"] = "PULLINMUSIIK";
   ["add_packing_material"] = "32651522506817644LL";
   ["send_type"] = "FV";
   ["post_office"] = "Helsinki";
   ["email"] = "etunimi.sukunimi@pullinmusiikki.fi";
   ["add_packing_cost"] = "4121132532856085312LL";
   ["company_number"] = "0095";
   ["info"] = "Meidän kanssa on kiva tehdä kauppaa";
   ["area"] = "";
   ["country"] = "";
   ["post_code"] = "00112";
  };
 };
 [25] = {
  ["co"] = {
   ["default_sales_person_id"] = "AK";
   ["name_2"] = "";
   ["type_"] = "33214498231025768LL";
   ["record_id"] = "20080110.101958.nf003.co_  zzy00050bfd29f1e02";
   ["text_address"] = "Sensorit Oy (Finvoice Testi) Pitkä Nimi Joka Ylittä Sallitut 35\
Ökylähiökatu 4\
00122 Helsinki";
   ["way_of_delivery"] = "";
   ["address"] = "Ökylähiökatu 4";
   ["language"] = "";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.ev1so.co_  zzy0ae544bd03e1c09";
   ["name"] = "Sensorit Oy (Finvoice Testi) Pitkä Nimi Joka Ylittä Sallitut 35";
   ["last_modification_date"] = "2022-04-25";
   ["creation_date"] = "2021-09-12";
   ["company_id"] = "SENSORIT";
   ["add_packing_material"] = "23644370497372265LL";
   ["send_type"] = "FV";
   ["post_office"] = "Helsinki";
   ["email"] = "etunimi.sukunimi@sensorit.fi";
   ["add_packing_cost"] = "3906363839892436023LL";
   ["company_number"] = "0096";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["post_code"] = "00122";
  };
 };
 [26] = {
  ["co"] = {
   ["default_sales_person_id"] = "AK";
   ["name_2"] = "";
   ["type_"] = "27303489360101473LL";
   ["record_id"] = "20090225.162612.ex001.co_  zzy0001d0fbe9b7a0g";
   ["text_address"] = "Rahtarit Oy\
Sorastajankatu 45\
40100 Jyväskylä";
   ["way_of_delivery"] = "";
   ["address"] = "Sorastajankatu 45";
   ["language"] = "";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.ew1sq.co_  zzy0ae544bd03e1c09";
   ["name"] = "Rahtarit Oy";
   ["last_modification_date"] = "2021-11-14";
   ["creation_date"] = "2021-08-28";
   ["company_id"] = "RAHTARIT";
   ["add_packing_material"] = "32088636975546479LL";
   ["send_type"] = "";
   ["post_office"] = "Jyväskylä";
   ["email"] = "";
   ["add_packing_cost"] = "4190955919047154998LL";
   ["company_number"] = "0100";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["post_code"] = "40100";
  };
 };
 [27] = {
  ["co"] = {
   ["default_sales_person_id"] = "PM";
   ["name_2"] = "Jyväskylän Ammattikorkeakoulu";
   ["type_"] = "29273814195109950LL";
   ["record_id"] = "20090326.142416.ke001.co_  zzy0000c29d4a10e02";
   ["text_address"] = "Tiimiakatemia\
Jyväskylän Ammattikorkeakoulu\
Piippukatu 3\
40100 Jyväskylä";
   ["way_of_delivery"] = "";
   ["address"] = "Piippukatu 3";
   ["language"] = "";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.ex1ss.co_  zzy0ae544bd03e1c09";
   ["name"] = "Tiimiakatemia";
   ["last_modification_date"] = "2021-09-13";
   ["creation_date"] = "2021-09-13";
   ["company_id"] = "TIIMIAKATEMI";
   ["add_packing_material"] = "27303433526116449LL";
   ["send_type"] = "";
   ["post_office"] = "Jyväskylä";
   ["email"] = "";
   ["add_packing_cost"] = "8387188304135790634LL";
   ["company_number"] = "0103";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["post_code"] = "40100";
  };
 };
 [28] = {
  ["co"] = {
   ["default_sales_person_id"] = "";
   ["name_2"] = "";
   ["type_"] = "27303579553955956LL";
   ["record_id"] = "20110120.164026.lt00g.co_  zzy0001b63a2c96405";
   ["text_address"] = "Helsingin Rauta Oy\
Niittytie 3\
53200\9Hyvinkää";
   ["way_of_delivery"] = "Viedään";
   ["address"] = "Niittytie 3";
   ["language"] = "Suomi";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.ey1su.co_  zzy0ae544bd03e1c09";
   ["name"] = "Helsingin Rauta Oy";
   ["last_modification_date"] = "2021-05-30";
   ["creation_date"] = "0000-00-00";
   ["company_id"] = "HKI RAUTA";
   ["add_packing_material"] = "16325982447992930LL";
   ["send_type"] = "";
   ["post_office"] = "Hyvinkää";
   ["email"] = "asd@asd.com";
   ["add_packing_cost"] = "7954894357498717518LL";
   ["company_number"] = "125";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["post_code"] = "53200";
  };
 };
 [29] = {
  ["co"] = {
   ["default_sales_person_id"] = "CL";
   ["name_2"] = "";
   ["type_"] = "9007615872925808LL";
   ["record_id"] = "20100211.124042.77001.co_  o11a0014512401740a";
   ["text_address"] = "INFLIGHT SERVICE EUROPE AB/Deliveries\
Fabriksgatan 3\
54350 TIBRO\
SWEDEN";
   ["way_of_delivery"] = "KVR";
   ["address"] = "Fabriksgatan 3";
   ["language"] = "";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.ez1sw.co_  zzy0ae544bd03e1c09";
   ["name"] = "INFLIGHT SERVICE EUROPE AB/Deliveries";
   ["last_modification_date"] = "2021-08-05";
   ["creation_date"] = "2016-07-03";
   ["company_id"] = "IFS";
   ["add_packing_material"] = "32088636977643552LL";
   ["send_type"] = "";
   ["post_office"] = "TIBRO";
   ["email"] = "cecilia.minning@inflightservice.se";
   ["add_packing_cost"] = "5288477685174325876LL";
   ["company_number"] = "1957";
   ["info"] = "4/2014 NIMI MUUTTUNUT  JA LASKUTUSOSOITE";
   ["area"] = "SE";
   ["country"] = "SWEDEN";
   ["post_code"] = "54350";
  };
 };
 [30] = {
  ["co"] = {
   ["default_sales_person_id"] = "ANI";
   ["name_2"] = "";
   ["type_"] = "9007693183254634LL";
   ["record_id"] = "20110120.164023.el001.co_  zzy0001b63a2c96405";
   ["text_address"] = "ACI Finland\
Tekniikantie 17\
02150\9Espoo";
   ["way_of_delivery"] = "";
   ["address"] = "Tekniikantie 17";
   ["language"] = "";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.ez1sy.co_  zzy0ae544bd03e1c09";
   ["name"] = "ACI Finland";
   ["last_modification_date"] = "2021-12-12";
   ["creation_date"] = "0000-00-00";
   ["company_id"] = "ACI";
   ["add_packing_material"] = "28429440805568590LL";
   ["send_type"] = "";
   ["post_office"] = "Espoo";
   ["email"] = "";
   ["add_packing_cost"] = "4209846878678119534LL";
   ["company_number"] = "100110";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["post_code"] = "02150";
  };
 };
 [31] = {
  ["co"] = {
   ["default_sales_person_id"] = "";
   ["name_2"] = "";
   ["type_"] = "9007650233385081LL";
   ["record_id"] = "20101025.142717.1d008.co_  zzy0001d0fbe9b7a0c";
   ["text_address"] = "";
   ["way_of_delivery"] = "";
   ["address"] = "";
   ["language"] = "";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.f11t0.co_  zzy0ae544bd03e1c09";
   ["name"] = "Käteisasiakas";
   ["last_modification_date"] = "2021-12-16";
   ["creation_date"] = "2021-08-08";
   ["company_id"] = "KÄT";
   ["add_packing_material"] = "34621559578361888LL";
   ["send_type"] = "";
   ["post_office"] = "";
   ["email"] = "";
   ["add_packing_cost"] = "4122808103453289504LL";
   ["company_number"] = "0109";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["post_code"] = "";
  };
 };
 [32] = {
  ["co"] = {
   ["default_sales_person_id"] = "AK";
   ["name_2"] = "";
   ["type_"] = "30117959950467121LL";
   ["record_id"] = "20090225.171550.99001.co_  zzy0001d0fbe9b7a0m";
   ["text_address"] = "Kiito Oy\
Kirkkokatu 1\
41200 Saarijärvi";
   ["way_of_delivery"] = "VR";
   ["address"] = "Kirkkokatu 1";
   ["language"] = "";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.f11t2.co_  zzy0ae544bd03e1c09";
   ["name"] = "Kiito Oy";
   ["last_modification_date"] = "2021-10-15";
   ["creation_date"] = "2021-08-28";
   ["company_id"] = "KIITO";
   ["add_packing_material"] = "13792664702943242LL";
   ["send_type"] = "";
   ["post_office"] = "Saarijärvi";
   ["email"] = "info@kiito.com";
   ["add_packing_cost"] = "4122544219736190517LL";
   ["company_number"] = "0101";
   ["info"] = "";
   ["area"] = "100";
   ["country"] = "";
   ["post_code"] = "41200";
  };
 };
 [33] = {
  ["co"] = {
   ["default_sales_person_id"] = "KYMÄLÄINEN";
   ["name_2"] = "";
   ["type_"] = "29555370778493045LL";
   ["record_id"] = "20051229.085303.7dux8.co_  a11a001321fbad5b02";
   ["text_address"] = "Nomet Oy\
Pukinekatu 1\
FI-33580 Tampere\
Finland";
   ["way_of_delivery"] = "";
   ["address"] = "Pukinekatu 1";
   ["language"] = "";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.f21t4.co_  zzy0ae544bd03e1c09";
   ["name"] = "Nomet Oy";
   ["last_modification_date"] = "2022-05-30";
   ["creation_date"] = "0000-00-00";
   ["company_id"] = "NOMET";
   ["add_packing_material"] = "9007461249843293LL";
   ["send_type"] = "";
   ["post_office"] = "Tampere";
   ["email"] = "";
   ["add_packing_cost"] = "7957420063142263086LL";
   ["company_number"] = "000000";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "Finland";
   ["post_code"] = "FI-33580";
  };
 };
 [34] = {
  ["co"] = {
   ["default_sales_person_id"] = "";
   ["name_2"] = "";
   ["type_"] = "16888915222069359LL";
   ["record_id"] = "20191021.183644.kk001.co_  zzy01008b1ffd53d09";
   ["text_address"] = "Brunswick Portugal\
Portugal";
   ["way_of_delivery"] = "";
   ["address"] = "";
   ["language"] = "";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.f31t6.co_  zzy0ae544bd03e1c09";
   ["name"] = "Brunswick Portugal";
   ["last_modification_date"] = "2023-05-15";
   ["creation_date"] = "2023-05-15";
   ["company_id"] = "1057";
   ["add_packing_material"] = "33777461067972642LL";
   ["send_type"] = "";
   ["post_office"] = "";
   ["email"] = "";
   ["add_packing_cost"] = "3760612557060583456LL";
   ["company_number"] = "1057";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "Portugal";
   ["post_code"] = "";
  };
 };
 [35] = {
  ["co"] = {
   ["default_sales_person_id"] = "";
   ["name_2"] = "";
   ["type_"] = "29273814197207087LL";
   ["record_id"] = "20190211.225941.oe003.co_  zzy01008b1ffd53d0a";
   ["text_address"] = "Web Order";
   ["way_of_delivery"] = "";
   ["address"] = "";
   ["language"] = "";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.f41t8.co_  zzy0ae544bd03e1c09";
   ["name"] = "Web Order";
   ["last_modification_date"] = "2022-09-05";
   ["creation_date"] = "2022-09-05";
   ["company_id"] = "7000";
   ["add_packing_material"] = "19422271615598687LL";
   ["send_type"] = "";
   ["post_office"] = "";
   ["email"] = "";
   ["add_packing_cost"] = "7378378827263844407LL";
   ["company_number"] = "0180";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["post_code"] = "";
  };
 };
 [36] = {
  ["co"] = {
   ["default_sales_person_id"] = "";
   ["name_2"] = "";
   ["type_"] = "27303579553955956LL";
   ["record_id"] = "20190924.134155.e5001.co_  zzy0902b343620e705";
   ["text_address"] = "EMEA, VA-Portugal";
   ["way_of_delivery"] = "";
   ["address"] = "";
   ["language"] = "";
   ["transfer_id"] = "";
   ["change_id"] = "20211117.123606.f51ta.co_  zzy0ae544bd03e1c09";
   ["name"] = "EMEA, VA-Portugal";
   ["last_modification_date"] = "2023-04-18";
   ["creation_date"] = "2023-04-18";
   ["company_id"] = "1000";
   ["add_packing_material"] = "9570359668179064LL";
   ["send_type"] = "";
   ["post_office"] = "";
   ["email"] = "";
   ["add_packing_cost"] = "7956021197733719657LL";
   [. 	9.12.2021 	15:13:43 	lx 	(7. palvelin)

error: json encoding error 'error while encoding', data 'table: 0x017bbcd080'
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/json.lua:374: in function 'toJsonRaw'
	/Users/pasi/nc/nc-server/lib/rest.lua:208: in function 'createAnswer'
	/Users/pasi/nc/nc-server/lib/rest.lua:835: in function 'answerFunction'
	/Users/pasi/nc/nc-server/lib/server.lua:139: in function 'answer'
	/Users/pasi/nc/nc-server/lib/server.lua:225: in function 'in_callback'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:248: in function 'poll_event'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:329: in function 'poll'
	/Users/pasi/nc/nc-server/lib/server.lua:312: in function 'pollLoop'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:117: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:152: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
. 	9.12.2021 	15:13:43 	lx 	(7. palvelin)

warning: Error when converting result data to json text. Check json for recursive tags, error: json encoding error 'error while encoding', data 'table: 0x017bbcd080'
. 	9.12.2021 	15:13:43 	lx 	(7. palvelin)

error: json encoding error 'error while encoding', data 'table: 0x017bbcd080'
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/json.lua:374: in function 'toJsonRaw'
	/Users/pasi/nc/nc-server/lib/rest.lua:208: in function 'createAnswer'
	/Users/pasi/nc/nc-server/lib/rest.lua:835: in function 'answerFunction'
	/Users/pasi/nc/nc-server/lib/server.lua:139: in function 'answer'
	/Users/pasi/nc/nc-server/lib/server.lua:225: in function 'in_callback'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:248: in function 'poll_event'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:329: in function 'poll'
	/Users/pasi/nc/nc-server/lib/server.lua:312: in function 'pollLoop'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:117: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:152: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]. 	9.12.2021 	15:13:43 	_lx_SERVER 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'. 	9.12.2021 	15:13:43 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	15:13:44 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.... 	9.12.2021 	15:13:44 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.... 	9.12.2021 	15:13:44 	lx 	(7. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.record_id IS NOT NULL LIMIT 2000 INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.email, co.address, co.post_code, co.post_office, co.send_type, co.way_of_delivery, co.language, co.add_packing_cost, co.add_packing_material, co.info, co.creation_date, co.record_id, co.last_modification_date, co.type_ FROM company co  WHERE co.record_id IS NOT NULL  LIMIT 2000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14,:_lx_atExe15,:_lx_atExe16,:_lx_atExe17,:_lx_alExe1,:_lx_alExe2,:_lx_atExe18,:_lx_adExe1,:_lx_atExe19,:_lx_adExe2,:_lx_alExe3
 - result _lx_atExe1 size: 41, first value: 'ELSOINTU'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	15:13:44 	_lx_ExecuteSqlNew 	(7. palvelin)

plg4d.selectionToArrayTable: arrName = {
 [1] = "_lx_atExe1";
 [2] = "_lx_atExe2";
 [3] = "_lx_atExe3";
 [4] = "_lx_atExe4";
 [5] = "_lx_atExe5";
 [6] = "_lx_atExe6";
 [7] = "_lx_atExe7";
 [8] = "_lx_atExe8";
 [9] = "_lx_atExe9";
 [10] = "_lx_atExe10";
 [11] = "_lx_atExe11";
 [12] = "_lx_atExe12";
 [13] = "_lx_atExe13";
 [14] = "_lx_atExe14";
 [15] = "_lx_atExe15";
 [16] = "_lx_atExe16";
 [17] = "_lx_atExe17";
 [18] = "_lx_alExe1";
 [19] = "_lx_alExe2";
 [20] = "_lx_atExe18";
 [21] = "_lx_adExe1";
 [22] = "_lx_atExe19";
 [23] = "_lx_adExe2";
 [24] = "_lx_alExe3";
};. 	9.12.2021 	15:13:44 	lx 	(7. palvelin)

plg4d.selectionToArrayTable: fieldName = {
 [1] = "co.company_id";
 [2] = "co.name";
 [3] = "co.name_2";
 [4] = "co.country";
 [5] = "co.area";
 [6] = "co.transfer_id";
 [7] = "co.change_id";
 [8] = "co.text_address";
 [9] = "co.company_number";
 [10] = "co.default_sales_person_id";
 [11] = "co.email";
 [12] = "co.address";
 [13] = "co.post_code";
 [14] = "co.post_office";
 [15] = "co.send_type";
 [16] = "co.way_of_delivery";
 [17] = "co.language";
 [18] = "co.add_packing_cost";
 [19] = "co.add_packing_material";
 [20] = "co.info";
 [21] = "co.creation_date";
 [22] = "co.record_id";
 [23] = "co.last_modification_date";
 [24] = "co.type_";
};. 	9.12.2021 	15:13:44 	lx 	(7. palvelin)

plg4d.selectionToArrayTable: ret = {
 [1] = {
  ["co"] = {
   ["add_packing_material"] = "0LL";
   ["name_2"] = "";
   ["record_id"] = "20050930.001951.ph2i9.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Elävä Sointu Oy\
PL 5\
28601 Pori";
   ["way_of_delivery"] = "Posti";
   ["address"] = "PL 5";
   ["language"] = "Englanti";
   ["change_id"] = "20211117.123606.dy1rc.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "Elävä Sointu Oy";
   ["type_"] = "0LL";
   ["creation_date"] = "0000-00-00";
   ["last_modification_date"] = "2021-12-23";
   ["company_id"] = "ELSOINTU";
   ["default_sales_person_id"] = "AK";
   ["post_code"] = "28601";
   ["post_office"] = "Pori";
   ["email"] = "etunimi.sukunimi@elsointu.fi";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0003";
   ["info"] = "Tuoteryhmät:MM+ST; ";
   ["area"] = " ";
   ["country"] = "";
   ["transfer_id"] = "";
  };
 };
 [2] = {
  ["co"] = {
   ["add_packing_material"] = "0LL";
   ["name_2"] = "";
   ["record_id"] = "20050930.001951.rd2ia.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Viruspiste Oy\
PL 555\
20500 Turku";
   ["way_of_delivery"] = "Posti";
   ["address"] = "PL 555";
   ["language"] = "Suomi";
   ["change_id"] = "20211117.123606.e01re.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "Viruspiste Oy";
   ["type_"] = "0LL";
   ["creation_date"] = "0000-00-00";
   ["last_modification_date"] = "2021-08-19";
   ["company_id"] = "VIRUSPISTE";
   ["default_sales_person_id"] = "PM";
   ["post_code"] = "20500";
   ["post_office"] = "Turku";
   ["email"] = "";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0019";
   ["info"] = "[manual]";
   ["area"] = "";
   ["country"] = "";
   ["transfer_id"] = "";
  };
 };
 [3] = {
  ["co"] = {
   ["add_packing_material"] = "0LL";
   ["name_2"] = "";
   ["record_id"] = "20050930.001951.rd2ib.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Mediatalo Oy\
Vasarakatu 2\
40100 Jyväskylä";
   ["way_of_delivery"] = "Sähköposti";
   ["address"] = "Vasarakatu 2";
   ["language"] = "";
   ["change_id"] = "20211117.123606.e01rg.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "Mediatalo Oy";
   ["type_"] = "0LL";
   ["creation_date"] = "0000-00-00";
   ["last_modification_date"] = "2022-05-12";
   ["company_id"] = "MEDIAMUKS";
   ["default_sales_person_id"] = "PM";
   ["post_code"] = "40100";
   ["post_office"] = "Jyväskylä";
   ["email"] = "";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0011";
   ["info"] = "zxc";
   ["area"] = "";
   ["country"] = "";
   ["transfer_id"] = "";
  };
 };
 [4] = {
  ["co"] = {
   ["add_packing_material"] = "1LL";
   ["name_2"] = "";
   ["record_id"] = "20050930.001951.rd2ic.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Muovi Ltd\
Pyykkärintie 4\
01233 Vantaa\
0190045";
   ["way_of_delivery"] = "Posti";
   ["address"] = "Pyykkärintie 4";
   ["language"] = "";
   ["change_id"] = "20211117.123606.e11ri.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "Muovi Ltd";
   ["type_"] = "0LL";
   ["creation_date"] = "0000-00-00";
   ["last_modification_date"] = "2021-07-05";
   ["company_id"] = "MUOVI";
   ["default_sales_person_id"] = "PM";
   ["post_code"] = "01233";
   ["post_office"] = "Vantaa";
   ["email"] = "";
   ["add_packing_cost"] = "1LL";
   ["company_number"] = "0013";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "0190045";
   ["transfer_id"] = "";
  };
 };
 [5] = {
  ["co"] = {
   ["add_packing_material"] = "0LL";
   ["name_2"] = "";
   ["record_id"] = "20050930.001951.re2id.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Graafinen Painatus\
Yliopiston 11 A 4\
40100 Jyväskylä";
   ["way_of_delivery"] = "Viedään";
   ["address"] = "Yliopiston 11 A 4";
   ["language"] = "";
   ["change_id"] = "20211117.123606.e21rk.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "Graafinen Painatus";
   ["type_"] = "0LL";
   ["creation_date"] = "0000-00-00";
   ["last_modification_date"] = "2022-01-24";
   ["company_id"] = "GRAFHEAD";
   ["default_sales_person_id"] = "PM";
   ["post_code"] = "40100";
   ["post_office"] = "Jyväskylä";
   ["email"] = "";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0005";
   ["info"] = "Tuoteryhmät:UM;<zx<zx";
   ["area"] = "";
   ["country"] = "";
   ["transfer_id"] = "";
  };
 };
 [6] = {
  ["co"] = {
   ["add_packing_material"] = "0LL";
   ["name_2"] = "";
   ["record_id"] = "20050930.001951.re2ie.co_  zzy000c09f7bd0c503";
   ["text_address"] = "";
   ["way_of_delivery"] = "Matkahuolto";
   ["address"] = "";
   ["language"] = "";
   ["change_id"] = "20211117.123606.e31rm.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "Satunnaisasiakas";
   ["type_"] = "0LL";
   ["creation_date"] = "2016-12-29";
   ["last_modification_date"] = "2019-07-08";
   ["company_id"] = "X";
   ["default_sales_person_id"] = "EK";
   ["post_code"] = "";
   ["post_office"] = "";
   ["email"] = "";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0021";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["transfer_id"] = "";
  };
 };
 [7] = {
  ["co"] = {
   ["add_packing_material"] = "0LL";
   ["name_2"] = "";
   ["record_id"] = "20050930.001951.re2if.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Koko Kosmetiikka\
Mankkaa 21\
02256 Espoo\
003701141622015";
   ["way_of_delivery"] = "Viedään";
   ["address"] = "Mankkaa 21";
   ["language"] = "";
   ["change_id"] = "20211117.123606.e41ro.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "Koko Kosmetiikka";
   ["type_"] = "4294967296LL";
   ["creation_date"] = "0000-00-00";
   ["last_modification_date"] = "2021-07-06";
   ["company_id"] = "KOSMETIIKKA";
   ["default_sales_person_id"] = "AK";
   ["post_code"] = "02256";
   ["post_office"] = "Espoo";
   ["email"] = "";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0009";
   ["info"] = " ";
   ["area"] = "";
   ["country"] = "003701141622015";
   ["transfer_id"] = "";
  };
 };
 [8] = {
  ["co"] = {
   ["add_packing_material"] = "0LL";
   ["name_2"] = "";
   ["record_id"] = "20050930.001951.rf2ig.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Tukkukuoma Ky\
PL 27\
01200 Helsinki";
   ["way_of_delivery"] = "Polkupyörä";
   ["address"] = "PL 27";
   ["language"] = "";
   ["change_id"] = "20211117.123606.e51rq.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "Tukkukuoma Ky";
   ["type_"] = "3LL";
   ["creation_date"] = "0000-00-00";
   ["last_modification_date"] = "2022-01-04";
   ["company_id"] = "TUKKU";
   ["default_sales_person_id"] = "PM";
   ["post_code"] = "01200";
   ["post_office"] = "Helsinki";
   ["email"] = "";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0018";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["transfer_id"] = "";
  };
 };
 [9] = {
  ["co"] = {
   ["add_packing_material"] = "0LL";
   ["name_2"] = "";
   ["record_id"] = "20050930.001951.rf2ii.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Manage Applications\
Laukaantie 4\
40320 Jyväskylä";
   ["way_of_delivery"] = "Posti";
   ["address"] = "Laukaantie 4";
   ["language"] = "Suomi";
   ["change_id"] = "20211117.123606.eb1rs.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "FV";
   ["name"] = "Manage Applications";
   ["type_"] = "0LL";
   ["creation_date"] = "0000-00-00";
   ["last_modification_date"] = "2021-07-25";
   ["company_id"] = "MANAGE";
   ["default_sales_person_id"] = "PM";
   ["post_code"] = "40320";
   ["post_office"] = "Jyväskylä";
   ["email"] = "manage@manageapp.com";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0010";
   ["info"] = " Finvoice testiä varten lisätty vapaa teksti kohdan teksti.";
   ["area"] = "";
   ["country"] = "";
   ["transfer_id"] = "";
  };
 };
 [10] = {
  ["co"] = {
   ["add_packing_material"] = "0LL";
   ["name_2"] = "Taivas Rajana Oy";
   ["record_id"] = "20050930.001951.rg2ij.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Sky Is Limit Oy\
Taivas Rajana Oy\
Huopalahdenkatu 58 B\
00350 Helsinki";
   ["way_of_delivery"] = "Sähköposti + viedään";
   ["address"] = "Huopalahdenkatu 58 B";
   ["language"] = "";
   ["change_id"] = "20211117.123606.eg1ru.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "Sky Is Limit Oy";
   ["type_"] = "0LL";
   ["creation_date"] = "2015-09-06";
   ["last_modification_date"] = "2021-07-16";
   ["company_id"] = "SKYISLIMIT";
   ["default_sales_person_id"] = "AK";
   ["post_code"] = "00350";
   ["post_office"] = "Helsinki";
   ["email"] = "";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0015";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["transfer_id"] = "";
  };
 };
 [11] = {
  ["co"] = {
   ["add_packing_material"] = "0LL";
   ["name_2"] = "";
   ["record_id"] = "20050930.001951.rg2ik.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Puupää Oy\
Lastutie 3\
40320 Jyväskylä";
   ["way_of_delivery"] = "";
   ["address"] = "Lastutie 3";
   ["language"] = "";
   ["change_id"] = "20211117.123606.eh1rw.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "FV";
   ["name"] = "Puupää Oy";
   ["type_"] = "8589934592LL";
   ["creation_date"] = "2018-08-06";
   ["last_modification_date"] = "2021-09-30";
   ["company_id"] = "PUUPÄÄ";
   ["default_sales_person_id"] = "AK";
   ["post_code"] = "40320";
   ["post_office"] = "Jyväskylä";
   ["email"] = "etunimi.sukunimi@puupää.com";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0014";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["transfer_id"] = "";
  };
 };
 [12] = {
  ["co"] = {
   ["add_packing_material"] = "0LL";
   ["name_2"] = "IV-Tehdas";
   ["record_id"] = "20050930.001951.rg2il.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Tanjazz Oy, Brekdancers Lahti\
IV-Tehdas\
Tiekatu 8\
15100 Lahti";
   ["way_of_delivery"] = "";
   ["address"] = "Tiekatu 8";
   ["language"] = "1";
   ["change_id"] = "20211117.123606.ei1ry.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "Tanjazz Oy, Brekdancers Lahti";
   ["type_"] = "0LL";
   ["creation_date"] = "0000-00-00";
   ["last_modification_date"] = "2021-07-26";
   ["company_id"] = "TANJAZZ";
   ["default_sales_person_id"] = "PM";
   ["post_code"] = "15100";
   ["post_office"] = "Lahti";
   ["email"] = "";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0017";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["transfer_id"] = "";
  };
 };
 [13] = {
  ["co"] = {
   ["add_packing_material"] = "0LL";
   ["name_2"] = "";
   ["record_id"] = "20050930.001951.rg2im.co_  zzy000c09f7bd0c503";
   ["text_address"] = "ABC Koneet Oyj\
PL 10\
00381 Helsinki";
   ["way_of_delivery"] = "Kiitolinja";
   ["address"] = "PL 10";
   ["language"] = "";
   ["change_id"] = "20211117.123606.ej1s0.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "FV";
   ["name"] = "ABC Koneet Oyj";
   ["type_"] = "12884901888LL";
   ["creation_date"] = "0000-00-00";
   ["last_modification_date"] = "2021-12-12";
   ["company_id"] = "ABC KONEET";
   ["default_sales_person_id"] = "EK";
   ["post_code"] = "00381";
   ["post_office"] = "Helsinki";
   ["email"] = "abc@abc.com";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "1001";
   ["info"] = "sdasassa\
<rahtivapaa>Rahtivapaa jos yli 15 kuutiota</rahtivapaa>\
dsfasdf\
asdfasdf.";
   ["area"] = "";
   ["country"] = "";
   ["transfer_id"] = "";
  };
 };
 [14] = {
  ["co"] = {
   ["add_packing_material"] = "0LL";
   ["name_2"] = "";
   ["record_id"] = "20050930.001951.rh2in.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Wärttinä Finland Oy\
Salaminkatu 45\
20810 Turku";
   ["way_of_delivery"] = "Kiitolinja";
   ["address"] = "Salaminkatu 45";
   ["language"] = "1";
   ["change_id"] = "20211117.123606.ek1s2.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "Wärttinä Finland Oy";
   ["type_"] = "0LL";
   ["creation_date"] = "0000-00-00";
   ["last_modification_date"] = "2021-07-07";
   ["company_id"] = "WÄRTTINÄ";
   ["default_sales_person_id"] = "EK";
   ["post_code"] = "20810";
   ["post_office"] = "Turku";
   ["email"] = "";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0033";
   ["info"] = "Tuoteryhmät:*MM+*KM;";
   ["area"] = "";
   ["country"] = "";
   ["transfer_id"] = "";
  };
 };
 [15] = {
  ["co"] = {
   ["add_packing_material"] = "0LL";
   ["name_2"] = "Isomoottoritehdas";
   ["record_id"] = "20050930.001951.rh2io.co_  zzy000c09f7bd0c503";
   ["text_address"] = "ABC Moottori Oyj\
Isomoottoritehdas\
PL 6\
65101 Vaasa";
   ["way_of_delivery"] = "Kiitolinja";
   ["address"] = "PL 6";
   ["language"] = "";
   ["change_id"] = "20211117.123606.ek1s4.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "ABC Moottori Oyj";
   ["type_"] = "0LL";
   ["creation_date"] = "2014-01-09";
   ["last_modification_date"] = "2021-11-26";
   ["company_id"] = "ABC VAASA";
   ["default_sales_person_id"] = "PM";
   ["post_code"] = "65101";
   ["post_office"] = "Vaasa";
   ["email"] = "";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "00002";
   ["info"] = "Tuoteryhmät:*MM+*KM;\
\
asd";
   ["area"] = "";
   ["country"] = "";
   ["transfer_id"] = "";
  };
 };
 [16] = {
  ["co"] = {
   ["add_packing_material"] = "0LL";
   ["name_2"] = "";
   ["record_id"] = "20050930.001951.rh2ip.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Koneen Valo Oy\
Honkatie 11\
08500 Lohja As\
Suomi";
   ["way_of_delivery"] = "Kiitolinja";
   ["address"] = "Honkatie 11";
   ["language"] = "Englanti";
   ["change_id"] = "20211117.123606.el1s6.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "EDI";
   ["name"] = "Koneen Valo Oy";
   ["type_"] = "0LL";
   ["creation_date"] = "2015-02-19";
   ["last_modification_date"] = "2022-01-13";
   ["company_id"] = "KONEEN-VALO";
   ["default_sales_person_id"] = "AK";
   ["post_code"] = "08500";
   ["post_office"] = "Lohja As";
   ["email"] = "";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0008";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "Suomi";
   ["transfer_id"] = "";
  };
 };
 [17] = {
  ["co"] = {
   ["add_packing_material"] = "0LL";
   ["name_2"] = "";
   ["record_id"] = "20050930.001951.ri2iq.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Susi Akselit Oy\
Autoilijantie 1. PL181\
13100 Hämeenlinna";
   ["way_of_delivery"] = "Kiitolinja";
   ["address"] = "Autoilijantie 1. PL181";
   ["language"] = "";
   ["change_id"] = "20211117.123606.eo1s8.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "Susi Akselit Oy";
   ["type_"] = "0LL";
   ["creation_date"] = "2016-10-28";
   ["last_modification_date"] = "2021-07-07";
   ["company_id"] = "SUSI AKSELIT";
   ["default_sales_person_id"] = "EK";
   ["post_code"] = "13100";
   ["post_office"] = "Hämeenlinna";
   ["email"] = "";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0016";
   ["info"] = "Susi Akselit Oy:n lisätietoja";
   ["area"] = "";
   ["country"] = "";
   ["transfer_id"] = "";
  };
 };
 [18] = {
  ["co"] = {
   ["add_packing_material"] = "0LL";
   ["name_2"] = "";
   ["record_id"] = "20050930.001951.ri2ir.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Hexa Tuotteet Oy\
Herkkukatu 16\
40100 Jyväskylä";
   ["way_of_delivery"] = "Posti";
   ["address"] = "Herkkukatu 16";
   ["language"] = "";
   ["change_id"] = "20211117.123606.ep1sa.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "Hexa Tuotteet Oy";
   ["type_"] = "0LL";
   ["creation_date"] = "2019-02-22";
   ["last_modification_date"] = "2021-07-09";
   ["company_id"] = "HEXA";
   ["default_sales_person_id"] = "AK";
   ["post_code"] = "40100";
   ["post_office"] = "Jyväskylä";
   ["email"] = "info@hermextuotteet.fi";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0006";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["transfer_id"] = "";
  };
 };
 [19] = {
  ["co"] = {
   ["add_packing_material"] = "0LL";
   ["name_2"] = "";
   ["record_id"] = "20050930.001951.ri2is.co_  zzy000c09f7bd0c503";
   ["text_address"] = "KeuKing Oy\
Keuruuntie 12 B 8\
42700 Keuruu\
Suomi";
   ["way_of_delivery"] = "";
   ["address"] = "Keuruuntie 12 B 8";
   ["language"] = "";
   ["change_id"] = "20211117.123606.eq1sc.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "KeuKing Oy";
   ["type_"] = "0LL";
   ["creation_date"] = "2021-03-18";
   ["last_modification_date"] = "2022-04-01";
   ["company_id"] = "KEUKING";
   ["default_sales_person_id"] = "PM";
   ["post_code"] = "42700";
   ["post_office"] = "Keuruu";
   ["email"] = "myynti@keuking.fi";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0007";
   ["info"] = "";
   ["area"] = "FI";
   ["country"] = "Suomi";
   ["transfer_id"] = "";
  };
 };
 [20] = {
  ["co"] = {
   ["add_packing_material"] = "0LL";
   ["name_2"] = "";
   ["record_id"] = "20050930.001951.rj2it.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Perfecta Industrier Ab\
Box 903\
67129 Arvika\
SWEDEN";
   ["way_of_delivery"] = "";
   ["address"] = "Box 903";
   ["language"] = "SWE";
   ["change_id"] = "20211117.123606.eq1se.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "Perfecta Industrier Ab";
   ["type_"] = "0LL";
   ["creation_date"] = "2021-04-30";
   ["last_modification_date"] = "2021-08-20";
   ["company_id"] = "PERFECTA";
   ["default_sales_person_id"] = "PM";
   ["post_code"] = "67129";
   ["post_office"] = "Arvika";
   ["email"] = "";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "0030";
   ["info"] = " ";
   ["area"] = "";
   ["country"] = "SWEDEN";
   ["transfer_id"] = "";
  };
 };
 [21] = {
  ["co"] = {
   ["add_packing_material"] = "721554505728LL";
   ["name_2"] = "";
   ["record_id"] = "20050930.001951.rj2iu.co_  zzy000c09f7bd0c503";
   ["text_address"] = "M-talo";
   ["way_of_delivery"] = "";
   ["address"] = "";
   ["language"] = "";
   ["change_id"] = "20211117.123606.er1sg.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "M-talo";
   ["type_"] = "721554505728LL";
   ["creation_date"] = "2021-04-30";
   ["last_modification_date"] = "2021-10-02";
   ["company_id"] = "MTALO";
   ["default_sales_person_id"] = "PM";
   ["post_code"] = "";
   ["post_office"] = "";
   ["email"] = "";
   ["add_packing_cost"] = "721554505779LL";
   ["company_number"] = "0118";
   ["info"] = "\"Hello -.åäöÅÄÖ•ƒ€?®†√œøæ™π±≈∆ﬁª†µı¥¢‰¶‡√É∏≠…¸˛‹›≈≤÷◊°¡€\"";
   ["area"] = "";
   ["country"] = "";
   ["transfer_id"] = "";
  };
 };
 [22] = {
  ["co"] = {
   ["add_packing_material"] = "34359738368LL";
   ["name_2"] = "Konttori";
   ["record_id"] = "20050930.001951.rj2iv.co_  zzy000c09f7bd0c503";
   ["text_address"] = "Sähkötuote Oy\
Konttori\
Silmukkatie 1\
65320 Vaasa";
   ["way_of_delivery"] = "Matkahuolto";
   ["address"] = "Silmukkatie 1";
   ["language"] = "";
   ["change_id"] = "20211117.123606.es1si.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "Sähkötuote Oy";
   ["type_"] = "0LL";
   ["creation_date"] = "2021-07-01";
   ["last_modification_date"] = "2021-10-30";
   ["company_id"] = "SÄHKÖTUOTE";
   ["default_sales_person_id"] = "ANI";
   ["post_code"] = "65320";
   ["post_office"] = "Vaasa";
   ["email"] = "myynti@sahkotuote.com";
   ["add_packing_cost"] = "25769803776LL";
   ["company_number"] = "0004";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["transfer_id"] = "";
  };
 };
 [23] = {
  ["co"] = {
   ["add_packing_material"] = "-2170832305696800760LL";
   ["name_2"] = "";
   ["record_id"] = "20071106.122711.oo001.co_  zzy000c09f7bd0c506";
   ["text_address"] = "Pan-Oston Oy\
Teollisuustie 1\
15540 Villähde";
   ["way_of_delivery"] = "Noudetaan";
   ["address"] = "Teollisuustie 1";
   ["language"] = "";
   ["change_id"] = "20211117.123606.et1sk.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "Pan-Oston Oy";
   ["type_"] = "0LL";
   ["creation_date"] = "2021-08-20";
   ["last_modification_date"] = "2021-11-26";
   ["company_id"] = "PAN-OSTON";
   ["default_sales_person_id"] = "ANI";
   ["post_code"] = "15540";
   ["post_office"] = "Villähde";
   ["email"] = "";
   ["add_packing_cost"] = "6LL";
   ["company_number"] = "0094";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["transfer_id"] = "";
  };
 };
 [24] = {
  ["co"] = {
   ["add_packing_material"] = "4632089243387166720LL";
   ["name_2"] = "";
   ["record_id"] = "20080110.100434.nf001.co_  zzy00050bfd29f1e02";
   ["text_address"] = "Pullin Musiikki Oy (Finvoice Testi)\
Puukatu 2 F\
00112 Helsinki";
   ["way_of_delivery"] = "";
   ["address"] = "Puukatu 2 F";
   ["language"] = "";
   ["change_id"] = "20211117.123606.eu1sm.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "FV";
   ["name"] = "Pullin Musiikki Oy (Finvoice Testi)";
   ["type_"] = "0LL";
   ["creation_date"] = "2021-09-12";
   ["last_modification_date"] = "2021-08-20";
   ["company_id"] = "PULLINMUSIIK";
   ["default_sales_person_id"] = "PM";
   ["post_code"] = "00112";
   ["post_office"] = "Helsinki";
   ["email"] = "etunimi.sukunimi@pullinmusiikki.fi";
   ["add_packing_cost"] = "4630189630891753472LL";
   ["company_number"] = "0095";
   ["info"] = "Meidän kanssa on kiva tehdä kauppaa";
   ["area"] = "";
   ["country"] = "";
   ["transfer_id"] = "";
  };
 };
 [25] = {
  ["co"] = {
   ["add_packing_material"] = "4623482678681796608LL";
   ["name_2"] = "";
   ["record_id"] = "20080110.101958.nf003.co_  zzy00050bfd29f1e02";
   ["text_address"] = "Sensorit Oy (Finvoice Testi) Pitkä Nimi Joka Ylittä Sallitut 35\
Ökylähiökatu 4\
00122 Helsinki";
   ["way_of_delivery"] = "";
   ["address"] = "Ökylähiökatu 4";
   ["language"] = "";
   ["change_id"] = "20211117.123606.ev1so.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "FV";
   ["name"] = "Sensorit Oy (Finvoice Testi) Pitkä Nimi Joka Ylittä Sallitut 35";
   ["type_"] = "0LL";
   ["creation_date"] = "2021-09-12";
   ["last_modification_date"] = "2022-04-25";
   ["company_id"] = "SENSORIT";
   ["default_sales_person_id"] = "AK";
   ["post_code"] = "00122";
   ["post_office"] = "Helsinki";
   ["email"] = "etunimi.sukunimi@sensorit.fi";
   ["add_packing_cost"] = "4623482678681796608LL";
   ["company_number"] = "0096";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["transfer_id"] = "";
  };
 };
 [26] = {
  ["co"] = {
   ["add_packing_material"] = "4622176458867998720LL";
   ["name_2"] = "";
   ["record_id"] = "20090225.162612.ex001.co_  zzy0001d0fbe9b7a0g";
   ["text_address"] = "Rahtarit Oy\
Sorastajankatu 45\
40100 Jyväskylä";
   ["way_of_delivery"] = "";
   ["address"] = "Sorastajankatu 45";
   ["language"] = "";
   ["change_id"] = "20211117.123606.ew1sq.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "Rahtarit Oy";
   ["type_"] = "1LL";
   ["creation_date"] = "2021-08-28";
   ["last_modification_date"] = "2021-11-14";
   ["company_id"] = "RAHTARIT";
   ["default_sales_person_id"] = "AK";
   ["post_code"] = "40100";
   ["post_office"] = "Jyväskylä";
   ["email"] = "";
   ["add_packing_cost"] = "4622176458867998720LL";
   ["company_number"] = "0100";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["transfer_id"] = "";
  };
 };
 [27] = {
  ["co"] = {
   ["add_packing_material"] = "4625485713989697536LL";
   ["name_2"] = "Jyväskylän Ammattikorkeakoulu";
   ["record_id"] = "20090326.142416.ke001.co_  zzy0000c29d4a10e02";
   ["text_address"] = "Tiimiakatemia\
Jyväskylän Ammattikorkeakoulu\
Piippukatu 3\
40100 Jyväskylä";
   ["way_of_delivery"] = "";
   ["address"] = "Piippukatu 3";
   ["language"] = "";
   ["change_id"] = "20211117.123606.ex1ss.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "Tiimiakatemia";
   ["type_"] = "0LL";
   ["creation_date"] = "2021-09-13";
   ["last_modification_date"] = "2021-09-13";
   ["company_id"] = "TIIMIAKATEMI";
   ["default_sales_person_id"] = "PM";
   ["post_code"] = "40100";
   ["post_office"] = "Jyväskylä";
   ["email"] = "";
   ["add_packing_cost"] = "4634451990796042240LL";
   ["company_number"] = "0103";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["transfer_id"] = "";
  };
 };
 [28] = {
  ["co"] = {
   ["add_packing_material"] = "1732766566585466880LL";
   ["name_2"] = "";
   ["record_id"] = "20110120.164026.lt00g.co_  zzy0001b63a2c96405";
   ["text_address"] = "Helsingin Rauta Oy\
Niittytie 3\
53200\9Hyvinkää";
   ["way_of_delivery"] = "Viedään";
   ["address"] = "Niittytie 3";
   ["language"] = "Suomi";
   ["change_id"] = "20211117.123606.ey1su.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "Helsingin Rauta Oy";
   ["type_"] = "0LL";
   ["creation_date"] = "0000-00-00";
   ["last_modification_date"] = "2021-05-30";
   ["company_id"] = "HKI RAUTA";
   ["default_sales_person_id"] = "";
   ["post_code"] = "53200";
   ["post_office"] = "Hyvinkää";
   ["email"] = "asd@asd.com";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "125";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["transfer_id"] = "";
  };
 };
 [29] = {
  ["co"] = {
   ["add_packing_material"] = "5180405352LL";
   ["name_2"] = "";
   ["record_id"] = "20100211.124042.77001.co_  o11a0014512401740a";
   ["text_address"] = "INFLIGHT SERVICE EUROPE AB/Deliveries\
Fabriksgatan 3\
54350 TIBRO\
SWEDEN";
   ["way_of_delivery"] = "KVR";
   ["address"] = "Fabriksgatan 3";
   ["language"] = "";
   ["change_id"] = "20211117.123606.ez1sw.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "INFLIGHT SERVICE EUROPE AB/Deliveries";
   ["type_"] = "0LL";
   ["creation_date"] = "2016-07-03";
   ["last_modification_date"] = "2021-08-05";
   ["company_id"] = "IFS";
   ["default_sales_person_id"] = "CL";
   ["post_code"] = "54350";
   ["post_office"] = "TIBRO";
   ["email"] = "cecilia.minning@inflightservice.se";
   ["add_packing_cost"] = "5180405352LL";
   ["company_number"] = "1957";
   ["info"] = "4/2014 NIMI MUUTTUNUT  JA LASKUTUSOSOITE";
   ["area"] = "SE";
   ["country"] = "SWEDEN";
   ["transfer_id"] = "";
  };
 };
 [30] = {
  ["co"] = {
   ["add_packing_material"] = "433191638425141254LL";
   ["name_2"] = "";
   ["record_id"] = "20110120.164023.el001.co_  zzy0001b63a2c96405";
   ["text_address"] = "ACI Finland\
Tekniikantie 17\
02150\9Espoo";
   ["way_of_delivery"] = "";
   ["address"] = "Tekniikantie 17";
   ["language"] = "";
   ["change_id"] = "20211117.123606.ez1sy.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "ACI Finland";
   ["type_"] = "0LL";
   ["creation_date"] = "0000-00-00";
   ["last_modification_date"] = "2021-12-12";
   ["company_id"] = "ACI";
   ["default_sales_person_id"] = "ANI";
   ["post_code"] = "02150";
   ["post_office"] = "Espoo";
   ["email"] = "";
   ["add_packing_cost"] = "6LL";
   ["company_number"] = "100110";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["transfer_id"] = "";
  };
 };
 [31] = {
  ["co"] = {
   ["add_packing_material"] = "105553216159752LL";
   ["name_2"] = "";
   ["record_id"] = "20101025.142717.1d008.co_  zzy0001d0fbe9b7a0c";
   ["text_address"] = "";
   ["way_of_delivery"] = "";
   ["address"] = "";
   ["language"] = "";
   ["change_id"] = "20211117.123606.f11t0.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "Käteisasiakas";
   ["type_"] = "0LL";
   ["creation_date"] = "2021-08-08";
   ["last_modification_date"] = "2021-12-16";
   ["company_id"] = "KÄT";
   ["default_sales_person_id"] = "";
   ["post_code"] = "";
   ["post_office"] = "";
   ["email"] = "";
   ["add_packing_cost"] = "105553216163848LL";
   ["company_number"] = "0109";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["transfer_id"] = "";
  };
 };
 [32] = {
  ["co"] = {
   ["add_packing_material"] = "108297909606285345LL";
   ["name_2"] = "";
   ["record_id"] = "20090225.171550.99001.co_  zzy0001d0fbe9b7a0m";
   ["text_address"] = "Kiito Oy\
Kirkkokatu 1\
41200 Saarijärvi";
   ["way_of_delivery"] = "VR";
   ["address"] = "Kirkkokatu 1";
   ["language"] = "";
   ["change_id"] = "20211117.123606.f11t2.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "Kiito Oy";
   ["type_"] = "0LL";
   ["creation_date"] = "2021-08-28";
   ["last_modification_date"] = "2021-10-15";
   ["company_id"] = "KIITO";
   ["default_sales_person_id"] = "AK";
   ["post_code"] = "41200";
   ["post_office"] = "Saarijärvi";
   ["email"] = "info@kiito.com";
   ["add_packing_cost"] = "33LL";
   ["company_number"] = "0101";
   ["info"] = "";
   ["area"] = "100";
   ["country"] = "";
   ["transfer_id"] = "";
  };
 };
 [33] = {
  ["co"] = {
   ["add_packing_material"] = "105553158308416LL";
   ["name_2"] = "";
   ["record_id"] = "20051229.085303.7dux8.co_  a11a001321fbad5b02";
   ["text_address"] = "Nomet Oy\
Pukinekatu 1\
FI-33580 Tampere\
Finland";
   ["way_of_delivery"] = "";
   ["address"] = "Pukinekatu 1";
   ["language"] = "";
   ["change_id"] = "20211117.123606.f21t4.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "Nomet Oy";
   ["type_"] = "0LL";
   ["creation_date"] = "0000-00-00";
   ["last_modification_date"] = "2022-05-30";
   ["company_id"] = "NOMET";
   ["default_sales_person_id"] = "KYMÄLÄINEN";
   ["post_code"] = "FI-33580";
   ["post_office"] = "Tampere";
   ["email"] = "";
   ["add_packing_cost"] = "105553158308160LL";
   ["company_number"] = "000000";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "Finland";
   ["transfer_id"] = "";
  };
 };
 [34] = {
  ["co"] = {
   ["add_packing_material"] = "4623507967449235456LL";
   ["name_2"] = "";
   ["record_id"] = "20191021.183644.kk001.co_  zzy01008b1ffd53d09";
   ["text_address"] = "Brunswick Portugal\
Portugal";
   ["way_of_delivery"] = "";
   ["address"] = "";
   ["language"] = "";
   ["change_id"] = "20211117.123606.f31t6.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "Brunswick Portugal";
   ["type_"] = "0LL";
   ["creation_date"] = "2023-05-15";
   ["last_modification_date"] = "2023-05-15";
   ["company_id"] = "1057";
   ["default_sales_person_id"] = "";
   ["post_code"] = "";
   ["post_office"] = "";
   ["email"] = "";
   ["add_packing_cost"] = "4623507967449235456LL";
   ["company_number"] = "1057";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "Portugal";
   ["transfer_id"] = "";
  };
 };
 [35] = {
  ["co"] = {
   ["add_packing_material"] = "-72057594037927936LL";
   ["name_2"] = "";
   ["record_id"] = "20190211.225941.oe003.co_  zzy01008b1ffd53d0a";
   ["text_address"] = "Web Order";
   ["way_of_delivery"] = "";
   ["address"] = "";
   ["language"] = "";
   ["change_id"] = "20211117.123606.f41t8.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "Web Order";
   ["type_"] = "0LL";
   ["creation_date"] = "2022-09-05";
   ["last_modification_date"] = "2022-09-05";
   ["company_id"] = "7000";
   ["default_sales_person_id"] = "";
   ["post_code"] = "";
   ["post_office"] = "";
   ["email"] = "";
   ["add_packing_cost"] = "-72057594037927936LL";
   ["company_number"] = "0180";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["transfer_id"] = "";
  };
 };
 [36] = {
  ["co"] = {
   ["add_packing_material"] = "0LL";
   ["name_2"] = "";
   ["record_id"] = "20190924.134155.e5001.co_  zzy0902b343620e705";
   ["text_address"] = "EMEA, VA-Portugal";
   ["way_of_delivery"] = "";
   ["address"] = "";
   ["language"] = "";
   ["change_id"] = "20211117.123606.f51ta.co_  zzy0ae544bd03e1c09";
   ["send_type"] = "";
   ["name"] = "EMEA, VA-Portugal";
   ["type_"] = "0LL";
   ["creation_date"] = "2023-04-18";
   ["last_modification_date"] = "2023-04-18";
   ["company_id"] = "1000";
   ["default_sales_person_id"] = "";
   ["post_code"] = "";
   ["post_office"] = "";
   ["email"] = "";
   ["add_packing_cost"] = "0LL";
   ["company_number"] = "1000";
   ["info"] = "";
   ["area"] = "";
   ["country"] = "";
   ["transfer_id"] = "";
  };
 };
 [37] = {
  ["co"] = {
   ["add_packing_material"] = "1732766553700564992LL";
   ["name_2"] = "";
   ["record_id"] = "20070609.040930.l4lu1.co_  o11a00138f2042bf02";
   ["text_address"] = "Oy NOREX COSMETICS Ab\
Vesikuja 4\
FI-02200  ESPOO";
   ["w. 	9.12.2021 	15:13:44 	lx 	(7. palvelin)

error: json encoding error 'error while encoding', data 'table: 0x017be93798'
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/json.lua:374: in function 'toJsonRaw'
	/Users/pasi/nc/nc-server/lib/rest.lua:208: in function 'createAnswer'
	/Users/pasi/nc/nc-server/lib/rest.lua:835: in function 'answerFunction'
	/Users/pasi/nc/nc-server/lib/server.lua:139: in function 'answer'
	/Users/pasi/nc/nc-server/lib/server.lua:225: in function 'in_callback'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:248: in function 'poll_event'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:329: in function 'poll'
	/Users/pasi/nc/nc-server/lib/server.lua:312: in function 'pollLoop'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:117: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:152: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
. 	9.12.2021 	15:13:44 	lx 	(7. palvelin)

warning: Error when converting result data to json text. Check json for recursive tags, error: json encoding error 'error while encoding', data 'table: 0x017be93798'
. 	9.12.2021 	15:13:44 	lx 	(7. palvelin)

error: json encoding error 'error while encoding', data 'table: 0x017be93798'
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/json.lua:374: in function 'toJsonRaw'
	/Users/pasi/nc/nc-server/lib/rest.lua:208: in function 'createAnswer'
	/Users/pasi/nc/nc-server/lib/rest.lua:835: in function 'answerFunction'
	/Users/pasi/nc/nc-server/lib/server.lua:139: in function 'answer'
	/Users/pasi/nc/nc-server/lib/server.lua:225: in function 'in_callback'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:248: in function 'poll_event'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:329: in function 'poll'
	/Users/pasi/nc/nc-server/lib/server.lua:312: in function 'pollLoop'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:117: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:152: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]. 	9.12.2021 	15:13:44 	_lx_SERVER 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	15:13:44 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT COUNT(*) FROM company. 	9.12.2021 	15:13:44 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT COUNT(*) FROM company. 	9.12.2021 	15:13:44 	lx 	(7. palvelin)

SELECT COUNT(*) FROM company  INTO :_lx_alExe1
 - result _lx_alExe1 size: 1, first value: 41
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	15:13:44 	_lx_ExecuteSqlNew 	(7. palvelin)

plg4d.selectionToArrayTable: arrName = {
 [1] = "_lx_alExe1";
};. 	9.12.2021 	15:13:44 	lx 	(7. palvelin)

plg4d.selectionToArrayTable: fieldName = {
 [1] = "COUNT(*)";
};. 	9.12.2021 	15:13:44 	lx 	(7. palvelin)

plg4d.selectionToArrayTable: ret = {
 [1] = {
  ["COUNT(*)"] = "18108252249LL";
 };
};. 	9.12.2021 	15:13:44 	lx 	(7. palvelin)

error: json encoding error 'error while encoding', data 'table: 0x017be09a28'
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/json.lua:374: in function 'toJsonRaw'
	/Users/pasi/nc/nc-server/lib/rest.lua:208: in function 'createAnswer'
	/Users/pasi/nc/nc-server/lib/rest.lua:835: in function 'answerFunction'
	/Users/pasi/nc/nc-server/lib/server.lua:139: in function 'answer'
	/Users/pasi/nc/nc-server/lib/server.lua:225: in function 'in_callback'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:248: in function 'poll_event'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:329: in function 'poll'
	/Users/pasi/nc/nc-server/lib/server.lua:312: in function 'pollLoop'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:117: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:152: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
. 	9.12.2021 	15:13:44 	lx 	(7. palvelin)

warning: Error when converting result data to json text. Check json for recursive tags, error: json encoding error 'error while encoding', data 'table: 0x017be09a28'
. 	9.12.2021 	15:13:44 	lx 	(7. palvelin)

error: json encoding error 'error while encoding', data 'table: 0x017be09a28'
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/json.lua:374: in function 'toJsonRaw'
	/Users/pasi/nc/nc-server/lib/rest.lua:208: in function 'createAnswer'
	/Users/pasi/nc/nc-server/lib/rest.lua:835: in function 'answerFunction'
	/Users/pasi/nc/nc-server/lib/server.lua:139: in function 'answer'
	/Users/pasi/nc/nc-server/lib/server.lua:225: in function 'in_callback'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:248: in function 'poll_event'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:329: in function 'poll'
	/Users/pasi/nc/nc-server/lib/server.lua:312: in function 'pollLoop'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:117: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:152: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:135>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]. 	9.12.2021 	15:13:44 	_lx_SERVER 	(7. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	9.12.2021 	15:18:34 	_lx_SERVER 	(4. tbl_ 3)

*** tcp close for sock 81, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	15:18:34 	lx 	(7. palvelin)

closing socket '81'. 	9.12.2021 	15:18:34 	lx 	(7. palvelin)

*** tcp close for sock 82, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	15:18:34 	lx 	(7. palvelin)

closing socket '82'. 	9.12.2021 	15:18:34 	lx 	(7. palvelin)

 -- Server statistics --
answerCount:          6
poll.fd_count:        1
pollCount:            23216
pollInCount:          7
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  3/2
totalBytesReceived:   5446
totalBytesSent:       3976. 	9.12.2021 	15:18:34 	lx 	(7. palvelin)

warning: socket type 'number' is not a table, socket number: 83
. 	9.12.2021 	15:18:34 	lx 	(7. palvelin)

closing socket '83'. 	9.12.2021 	15:18:34 	lx 	(7. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x01375b3d50. 	9.12.2021 	15:18:34 	lx 	(7. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01375b3d50, size: 400. 	9.12.2021 	15:18:34 	lx 	(7. palvelin)

--- server stopped ---. 	9.12.2021 	15:18:34 	lx 	(7. palvelin)

finalizer: free p1 	 cdata<void *>: 0x01375b3d50. 	9.12.2021 	15:18:34 	lx 	(7. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	15:18:34 	_lx_SERVER 	(7. palvelin)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	15:18:39 	_lx_SERVER 	(7. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	15:18:40 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	15:18:40 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	15:18:40 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	15:18:40 	lx 	(7. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	15:18:40 	lx 	(7. palvelin)

  database connect time: 0.0003 seconds. 	9.12.2021 	15:18:40 	lx 	(7. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	15:18:40 	lx 	(7. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	9.12.2021 	15:18:40 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	15:18:40 	lx 	(7. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0137579620, size: 400. 	9.12.2021 	15:18:40 	lx 	(7. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	15:18:40 	lx 	(7. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	9.12.2021 	15:18:40 	lx 	(7. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	15:18:40 	lx 	(7. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	9.12.2021 	15:18:40 	lx 	(7. palvelin)

2. Loading plugin: nc/worker/query_worker. 	9.12.2021 	15:18:40 	lx 	(7. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	9.12.2021 	15:18:40 	lx 	(7. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	9.12.2021 	15:18:40 	lx 	(7. palvelin)

All plugins have been loaded. 	9.12.2021 	15:18:40 	lx 	(7. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json. 	9.12.2021 	15:18:40 	lx 	(7. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	9.12.2021 	15:18:40 	lx 	(7. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	15:18:40 	lx 	(7. palvelin)

Mac address: f84d896921dc. 	9.12.2021 	15:18:40 	lx 	(7. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	9.12.2021 	15:18:40 	lx 	(7. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.1.15:5949/
                          https://127.0.0.1:5949/, https://192.168.1.15:5949/. 	9.12.2021 	15:18:40 	lx 	(7. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.1.15:5949/. 	9.12.2021 	15:18:40 	lx 	(7. palvelin)

--- server started in 0.002 seconds, 2021-12-09 15:18:40, used memory 2993.8 kb --- 	 5. 	9.12.2021 	15:18:40 	lx 	(7. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	9.12.2021 	15:18:40 	lx 	(7. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-09 15:18:56
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 503
Content-Uncompressed-Length: 584

LZ4. 	9.12.2021 	15:18:56 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	15:18:56 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	15:18:56 	lx 	(7. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	9.12.2021 	15:18:56 	lx 	(7. palvelin)

  database connect time: 0.0001 seconds. 	9.12.2021 	15:18:56 	lx 	(7. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	9.12.2021 	15:18:56 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	15:18:56 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	15:18:56 	lx 	(7. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1
 - original query: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	15:18:56 	_lx_ExecuteSqlNew 	(7. palvelin)

plg4d.selectionToArrayTable: arrName = {
 [1] = "_lx_atExe1";
 [2] = "_lx_atExe2";
};. 	9.12.2021 	15:18:56 	lx 	(7. palvelin)

plg4d.selectionToArrayTable: fieldName = {
 [1] = "name_id";
 [2] = "text_value";
};. 	9.12.2021 	15:18:56 	lx 	(7. palvelin)

plg4d.selectionToArrayTable: ret = {
 [1] = {
  ["text_value"] = "{\
  \"tab\": [{\
      \"name\": \"Lista\",\
      \"list_name\": \"Lista\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Tiedonsiirto\",\
      \"list_name\": \"Tiedonsiirto\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"Finvoice\",\
      \"list_name\": \"\",\
      \"query_name\": \"==FinvoiceCustomer\",\
      \"query_type\": \"Etsi valinnasta\"\
    }, {\
      \"name\": \"c9000\",\
      \"list_name\": \"c9000\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }, {\
      \"name\": \"nx\",\
      \"list_name\": \"nx\",\
      \"query_name\": \"\",\
      \"query_type\": \"\"\
    }]\
}";
  ["name_id"] = "_tab_co.json";
 };
 [2] = {
  ["text_value"] = "{ \"tab\": [ { \"name\": \"Lista\", \"query_type\": \"\", \"query_name\": \"\", \"list_name\": \"Lista\" } ] }";
  ["name_id"] = "_tab_default.json";
 };
};. 	9.12.2021 	15:18:56 	lx 	(7. palvelin)

 1. answer time: 00:00:00.00138
  
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	15:18:56 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'. 	9.12.2021 	15:19:04 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	15:19:04 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.... 	9.12.2021 	15:19:04 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.... 	9.12.2021 	15:19:04 	lx 	(7. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.record_id IS NOT NULL LIMIT 2000 INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.email, co.address, co.post_code, co.post_office, co.send_type, co.way_of_delivery, co.language, co.add_packing_cost, co.add_packing_material, co.info, co.creation_date, co.record_id, co.last_modification_date, co.type_ FROM company co  WHERE co.record_id IS NOT NULL  LIMIT 2000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14,:_lx_atExe15,:_lx_atExe16,:_lx_atExe17,:_lx_alExe1,:_lx_alExe2,:_lx_atExe18,:_lx_adExe1,:_lx_atExe19,:_lx_adExe2,:_lx_alExe3
 - result _lx_atExe1 size: 41, first value: 'ELSOINTU'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	15:19:04 	_lx_ExecuteSqlNew 	(7. palvelin)

plg4d.selectionToArrayTable: arrName = {
 [1] = "_lx_atExe1";
 [2] = "_lx_atExe2";
 [3] = "_lx_atExe3";
 [4] = "_lx_atExe4";
 [5] = "_lx_atExe5";
 [6] = "_lx_atExe6";
 [7] = "_lx_atExe7";
 [8] = "_lx_atExe8";
 [9] = "_lx_atExe9";
 [10] = "_lx_atExe10";
 [11] = "_lx_atExe11";
 [12] = "_lx_atExe12";
 [13] = "_lx_atExe13";
 [14] = "_lx_atExe14";
 [15] = "_lx_atExe15";
 [16] = "_lx_atExe16";
 [17] = "_lx_atExe17";
 [18] = "_lx_alExe1";
 [19] = "_lx_alExe2";
 [20] = "_lx_atExe18";
 [21] = "_lx_adExe1";
 [22] = "_lx_atExe19";
 [23] = "_lx_adExe2";
 [24] = "_lx_alExe3";
};. 	9.12.2021 	15:19:04 	lx 	(7. palvelin)

plg4d.selectionToArrayTable: fieldName = {
 [1] = "co.company_id";
 [2] = "co.name";
 [3] = "co.name_2";
 [4] = "co.country";
 [5] = "co.area";
 [6] = "co.transfer_id";
 [7] = "co.change_id";
 [8] = "co.text_address";
 [9] = "co.company_number";
 [10] = "co.default_sales_person_id";
 [11] = "co.email";
 [12] = "co.address";
 [13] = "co.post_code";
 [14] = "co.post_office";
 [15] = "co.send_type";
 [16] = "co.way_of_delivery";
 [17] = "co.language";
 [18] = "co.add_packing_cost";
 [19] = "co.add_packing_material";
 [20] = "co.info";
 [21] = "co.creation_date";
 [22] = "co.record_id";
 [23] = "co.last_modification_date";
 [24] = "co.type_";
};. 	9.12.2021 	15:19:04 	lx 	(7. palvelin)

plg4d.selectionToArrayTable: ret = {
 [1] = {
  ["co"] = {
   ["company_id"] = "ELSOINTU";
   ["country"] = "";
   ["record_id"] = "20050930.001951.ph2i9.co_  zzy000c09f7bd0c503";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.dy1rc.co_  zzy0ae544bd03e1c09";
   ["address"] = "PL 5";
   ["text_address"] = "Elävä Sointu Oy\
PL 5\
28601 Pori";
   ["way_of_delivery"] = "Posti";
   ["creation_date"] = "0000-00-00";
   ["name"] = "Elävä Sointu Oy";
   ["default_sales_person_id"] = "AK";
   ["area"] = " ";
   ["last_modification_date"] = "2021-12-23";
   ["post_code"] = "28601";
   ["post_office"] = "Pori";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = "Tuoteryhmät:MM+ST; ";
   ["send_type"] = "";
   ["email"] = "etunimi.sukunimi@elsointu.fi";
   ["language"] = "Englanti";
   ["add_packing_cost"] = 0;
   ["company_number"] = "0003";
   ["add_packing_material"] = 0;
  };
 };
 [2] = {
  ["co"] = {
   ["company_id"] = "VIRUSPISTE";
   ["country"] = "";
   ["record_id"] = "20050930.001951.rd2ia.co_  zzy000c09f7bd0c503";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.e01re.co_  zzy0ae544bd03e1c09";
   ["address"] = "PL 555";
   ["text_address"] = "Viruspiste Oy\
PL 555\
20500 Turku";
   ["way_of_delivery"] = "Posti";
   ["creation_date"] = "0000-00-00";
   ["name"] = "Viruspiste Oy";
   ["default_sales_person_id"] = "PM";
   ["area"] = "";
   ["last_modification_date"] = "2021-08-19";
   ["post_code"] = "20500";
   ["post_office"] = "Turku";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = "[manual]";
   ["send_type"] = "";
   ["email"] = "";
   ["language"] = "Suomi";
   ["add_packing_cost"] = 0;
   ["company_number"] = "0019";
   ["add_packing_material"] = 0;
  };
 };
 [3] = {
  ["co"] = {
   ["company_id"] = "MEDIAMUKS";
   ["country"] = "";
   ["record_id"] = "20050930.001951.rd2ib.co_  zzy000c09f7bd0c503";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.e01rg.co_  zzy0ae544bd03e1c09";
   ["address"] = "Vasarakatu 2";
   ["text_address"] = "Mediatalo Oy\
Vasarakatu 2\
40100 Jyväskylä";
   ["way_of_delivery"] = "Sähköposti";
   ["creation_date"] = "0000-00-00";
   ["name"] = "Mediatalo Oy";
   ["default_sales_person_id"] = "PM";
   ["area"] = "";
   ["last_modification_date"] = "2022-05-12";
   ["post_code"] = "40100";
   ["post_office"] = "Jyväskylä";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = "zxc";
   ["send_type"] = "";
   ["email"] = "";
   ["language"] = "";
   ["add_packing_cost"] = 0;
   ["company_number"] = "0011";
   ["add_packing_material"] = 0;
  };
 };
 [4] = {
  ["co"] = {
   ["company_id"] = "MUOVI";
   ["country"] = "0190045";
   ["record_id"] = "20050930.001951.rd2ic.co_  zzy000c09f7bd0c503";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.e11ri.co_  zzy0ae544bd03e1c09";
   ["address"] = "Pyykkärintie 4";
   ["text_address"] = "Muovi Ltd\
Pyykkärintie 4\
01233 Vantaa\
0190045";
   ["way_of_delivery"] = "Posti";
   ["creation_date"] = "0000-00-00";
   ["name"] = "Muovi Ltd";
   ["default_sales_person_id"] = "PM";
   ["area"] = "";
   ["last_modification_date"] = "2021-07-05";
   ["post_code"] = "01233";
   ["post_office"] = "Vantaa";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = "";
   ["send_type"] = "";
   ["email"] = "";
   ["language"] = "";
   ["add_packing_cost"] = 1;
   ["company_number"] = "0013";
   ["add_packing_material"] = 1;
  };
 };
 [5] = {
  ["co"] = {
   ["company_id"] = "GRAFHEAD";
   ["country"] = "";
   ["record_id"] = "20050930.001951.re2id.co_  zzy000c09f7bd0c503";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.e21rk.co_  zzy0ae544bd03e1c09";
   ["address"] = "Yliopiston 11 A 4";
   ["text_address"] = "Graafinen Painatus\
Yliopiston 11 A 4\
40100 Jyväskylä";
   ["way_of_delivery"] = "Viedään";
   ["creation_date"] = "0000-00-00";
   ["name"] = "Graafinen Painatus";
   ["default_sales_person_id"] = "PM";
   ["area"] = "";
   ["last_modification_date"] = "2022-01-24";
   ["post_code"] = "40100";
   ["post_office"] = "Jyväskylä";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = "Tuoteryhmät:UM;<zx<zx";
   ["send_type"] = "";
   ["email"] = "";
   ["language"] = "";
   ["add_packing_cost"] = 0;
   ["company_number"] = "0005";
   ["add_packing_material"] = 0;
  };
 };
 [6] = {
  ["co"] = {
   ["company_id"] = "X";
   ["country"] = "";
   ["record_id"] = "20050930.001951.re2ie.co_  zzy000c09f7bd0c503";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.e31rm.co_  zzy0ae544bd03e1c09";
   ["address"] = "";
   ["text_address"] = "";
   ["way_of_delivery"] = "Matkahuolto";
   ["creation_date"] = "2016-12-29";
   ["name"] = "Satunnaisasiakas";
   ["default_sales_person_id"] = "EK";
   ["area"] = "";
   ["last_modification_date"] = "2019-07-08";
   ["post_code"] = "";
   ["post_office"] = "";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = "";
   ["send_type"] = "";
   ["email"] = "";
   ["language"] = "";
   ["add_packing_cost"] = 0;
   ["company_number"] = "0021";
   ["add_packing_material"] = 0;
  };
 };
 [7] = {
  ["co"] = {
   ["company_id"] = "KOSMETIIKKA";
   ["country"] = "003701141622015";
   ["record_id"] = "20050930.001951.re2if.co_  zzy000c09f7bd0c503";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.e41ro.co_  zzy0ae544bd03e1c09";
   ["address"] = "Mankkaa 21";
   ["text_address"] = "Koko Kosmetiikka\
Mankkaa 21\
02256 Espoo\
003701141622015";
   ["way_of_delivery"] = "Viedään";
   ["creation_date"] = "0000-00-00";
   ["name"] = "Koko Kosmetiikka";
   ["default_sales_person_id"] = "AK";
   ["area"] = "";
   ["last_modification_date"] = "2021-07-06";
   ["post_code"] = "02256";
   ["post_office"] = "Espoo";
   ["transfer_id"] = "";
   ["type_"] = 4294967296;
   ["info"] = " ";
   ["send_type"] = "";
   ["email"] = "";
   ["language"] = "";
   ["add_packing_cost"] = 0;
   ["company_number"] = "0009";
   ["add_packing_material"] = 0;
  };
 };
 [8] = {
  ["co"] = {
   ["company_id"] = "TUKKU";
   ["country"] = "";
   ["record_id"] = "20050930.001951.rf2ig.co_  zzy000c09f7bd0c503";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.e51rq.co_  zzy0ae544bd03e1c09";
   ["address"] = "PL 27";
   ["text_address"] = "Tukkukuoma Ky\
PL 27\
01200 Helsinki";
   ["way_of_delivery"] = "Polkupyörä";
   ["creation_date"] = "0000-00-00";
   ["name"] = "Tukkukuoma Ky";
   ["default_sales_person_id"] = "PM";
   ["area"] = "";
   ["last_modification_date"] = "2022-01-04";
   ["post_code"] = "01200";
   ["post_office"] = "Helsinki";
   ["transfer_id"] = "";
   ["type_"] = 3;
   ["info"] = "";
   ["send_type"] = "";
   ["email"] = "";
   ["language"] = "";
   ["add_packing_cost"] = 0;
   ["company_number"] = "0018";
   ["add_packing_material"] = 0;
  };
 };
 [9] = {
  ["co"] = {
   ["company_id"] = "MANAGE";
   ["country"] = "";
   ["record_id"] = "20050930.001951.rf2ii.co_  zzy000c09f7bd0c503";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.eb1rs.co_  zzy0ae544bd03e1c09";
   ["address"] = "Laukaantie 4";
   ["text_address"] = "Manage Applications\
Laukaantie 4\
40320 Jyväskylä";
   ["way_of_delivery"] = "Posti";
   ["creation_date"] = "0000-00-00";
   ["name"] = "Manage Applications";
   ["default_sales_person_id"] = "PM";
   ["area"] = "";
   ["last_modification_date"] = "2021-07-25";
   ["post_code"] = "40320";
   ["post_office"] = "Jyväskylä";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = " Finvoice testiä varten lisätty vapaa teksti kohdan teksti.";
   ["send_type"] = "FV";
   ["email"] = "manage@manageapp.com";
   ["language"] = "Suomi";
   ["add_packing_cost"] = 0;
   ["company_number"] = "0010";
   ["add_packing_material"] = 0;
  };
 };
 [10] = {
  ["co"] = {
   ["company_id"] = "SKYISLIMIT";
   ["country"] = "";
   ["record_id"] = "20050930.001951.rg2ij.co_  zzy000c09f7bd0c503";
   ["name_2"] = "Taivas Rajana Oy";
   ["change_id"] = "20211117.123606.eg1ru.co_  zzy0ae544bd03e1c09";
   ["address"] = "Huopalahdenkatu 58 B";
   ["text_address"] = "Sky Is Limit Oy\
Taivas Rajana Oy\
Huopalahdenkatu 58 B\
00350 Helsinki";
   ["way_of_delivery"] = "Sähköposti + viedään";
   ["creation_date"] = "2015-09-06";
   ["name"] = "Sky Is Limit Oy";
   ["default_sales_person_id"] = "AK";
   ["area"] = "";
   ["last_modification_date"] = "2021-07-16";
   ["post_code"] = "00350";
   ["post_office"] = "Helsinki";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = "";
   ["send_type"] = "";
   ["email"] = "";
   ["language"] = "";
   ["add_packing_cost"] = 0;
   ["company_number"] = "0015";
   ["add_packing_material"] = 0;
  };
 };
 [11] = {
  ["co"] = {
   ["company_id"] = "PUUPÄÄ";
   ["country"] = "";
   ["record_id"] = "20050930.001951.rg2ik.co_  zzy000c09f7bd0c503";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.eh1rw.co_  zzy0ae544bd03e1c09";
   ["address"] = "Lastutie 3";
   ["text_address"] = "Puupää Oy\
Lastutie 3\
40320 Jyväskylä";
   ["way_of_delivery"] = "";
   ["creation_date"] = "2018-08-06";
   ["name"] = "Puupää Oy";
   ["default_sales_person_id"] = "AK";
   ["area"] = "";
   ["last_modification_date"] = "2021-09-30";
   ["post_code"] = "40320";
   ["post_office"] = "Jyväskylä";
   ["transfer_id"] = "";
   ["type_"] = 8589934592;
   ["info"] = "";
   ["send_type"] = "FV";
   ["email"] = "etunimi.sukunimi@puupää.com";
   ["language"] = "";
   ["add_packing_cost"] = 0;
   ["company_number"] = "0014";
   ["add_packing_material"] = 0;
  };
 };
 [12] = {
  ["co"] = {
   ["company_id"] = "TANJAZZ";
   ["country"] = "";
   ["record_id"] = "20050930.001951.rg2il.co_  zzy000c09f7bd0c503";
   ["name_2"] = "IV-Tehdas";
   ["change_id"] = "20211117.123606.ei1ry.co_  zzy0ae544bd03e1c09";
   ["address"] = "Tiekatu 8";
   ["text_address"] = "Tanjazz Oy, Brekdancers Lahti\
IV-Tehdas\
Tiekatu 8\
15100 Lahti";
   ["way_of_delivery"] = "";
   ["creation_date"] = "0000-00-00";
   ["name"] = "Tanjazz Oy, Brekdancers Lahti";
   ["default_sales_person_id"] = "PM";
   ["area"] = "";
   ["last_modification_date"] = "2021-07-26";
   ["post_code"] = "15100";
   ["post_office"] = "Lahti";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = "";
   ["send_type"] = "";
   ["email"] = "";
   ["language"] = "1";
   ["add_packing_cost"] = 0;
   ["company_number"] = "0017";
   ["add_packing_material"] = 0;
  };
 };
 [13] = {
  ["co"] = {
   ["company_id"] = "ABC KONEET";
   ["country"] = "";
   ["record_id"] = "20050930.001951.rg2im.co_  zzy000c09f7bd0c503";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.ej1s0.co_  zzy0ae544bd03e1c09";
   ["address"] = "PL 10";
   ["text_address"] = "ABC Koneet Oyj\
PL 10\
00381 Helsinki";
   ["way_of_delivery"] = "Kiitolinja";
   ["creation_date"] = "0000-00-00";
   ["name"] = "ABC Koneet Oyj";
   ["default_sales_person_id"] = "EK";
   ["area"] = "";
   ["last_modification_date"] = "2021-12-12";
   ["post_code"] = "00381";
   ["post_office"] = "Helsinki";
   ["transfer_id"] = "";
   ["type_"] = 12884901888;
   ["info"] = "sdasassa\
<rahtivapaa>Rahtivapaa jos yli 15 kuutiota</rahtivapaa>\
dsfasdf\
asdfasdf.";
   ["send_type"] = "FV";
   ["email"] = "abc@abc.com";
   ["language"] = "";
   ["add_packing_cost"] = 0;
   ["company_number"] = "1001";
   ["add_packing_material"] = 0;
  };
 };
 [14] = {
  ["co"] = {
   ["company_id"] = "WÄRTTINÄ";
   ["country"] = "";
   ["record_id"] = "20050930.001951.rh2in.co_  zzy000c09f7bd0c503";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.ek1s2.co_  zzy0ae544bd03e1c09";
   ["address"] = "Salaminkatu 45";
   ["text_address"] = "Wärttinä Finland Oy\
Salaminkatu 45\
20810 Turku";
   ["way_of_delivery"] = "Kiitolinja";
   ["creation_date"] = "0000-00-00";
   ["name"] = "Wärttinä Finland Oy";
   ["default_sales_person_id"] = "EK";
   ["area"] = "";
   ["last_modification_date"] = "2021-07-07";
   ["post_code"] = "20810";
   ["post_office"] = "Turku";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = "Tuoteryhmät:*MM+*KM;";
   ["send_type"] = "";
   ["email"] = "";
   ["language"] = "1";
   ["add_packing_cost"] = 0;
   ["company_number"] = "0033";
   ["add_packing_material"] = 0;
  };
 };
 [15] = {
  ["co"] = {
   ["company_id"] = "ABC VAASA";
   ["country"] = "";
   ["record_id"] = "20050930.001951.rh2io.co_  zzy000c09f7bd0c503";
   ["name_2"] = "Isomoottoritehdas";
   ["change_id"] = "20211117.123606.ek1s4.co_  zzy0ae544bd03e1c09";
   ["address"] = "PL 6";
   ["text_address"] = "ABC Moottori Oyj\
Isomoottoritehdas\
PL 6\
65101 Vaasa";
   ["way_of_delivery"] = "Kiitolinja";
   ["creation_date"] = "2014-01-09";
   ["name"] = "ABC Moottori Oyj";
   ["default_sales_person_id"] = "PM";
   ["area"] = "";
   ["last_modification_date"] = "2021-11-26";
   ["post_code"] = "65101";
   ["post_office"] = "Vaasa";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = "Tuoteryhmät:*MM+*KM;\
\
asd";
   ["send_type"] = "";
   ["email"] = "";
   ["language"] = "";
   ["add_packing_cost"] = 0;
   ["company_number"] = "00002";
   ["add_packing_material"] = 0;
  };
 };
 [16] = {
  ["co"] = {
   ["company_id"] = "KONEEN-VALO";
   ["country"] = "Suomi";
   ["record_id"] = "20050930.001951.rh2ip.co_  zzy000c09f7bd0c503";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.el1s6.co_  zzy0ae544bd03e1c09";
   ["address"] = "Honkatie 11";
   ["text_address"] = "Koneen Valo Oy\
Honkatie 11\
08500 Lohja As\
Suomi";
   ["way_of_delivery"] = "Kiitolinja";
   ["creation_date"] = "2015-02-19";
   ["name"] = "Koneen Valo Oy";
   ["default_sales_person_id"] = "AK";
   ["area"] = "";
   ["last_modification_date"] = "2022-01-13";
   ["post_code"] = "08500";
   ["post_office"] = "Lohja As";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = "";
   ["send_type"] = "EDI";
   ["email"] = "";
   ["language"] = "Englanti";
   ["add_packing_cost"] = 0;
   ["company_number"] = "0008";
   ["add_packing_material"] = 0;
  };
 };
 [17] = {
  ["co"] = {
   ["company_id"] = "SUSI AKSELIT";
   ["country"] = "";
   ["record_id"] = "20050930.001951.ri2iq.co_  zzy000c09f7bd0c503";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.eo1s8.co_  zzy0ae544bd03e1c09";
   ["address"] = "Autoilijantie 1. PL181";
   ["text_address"] = "Susi Akselit Oy\
Autoilijantie 1. PL181\
13100 Hämeenlinna";
   ["way_of_delivery"] = "Kiitolinja";
   ["creation_date"] = "2016-10-28";
   ["name"] = "Susi Akselit Oy";
   ["default_sales_person_id"] = "EK";
   ["area"] = "";
   ["last_modification_date"] = "2021-07-07";
   ["post_code"] = "13100";
   ["post_office"] = "Hämeenlinna";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = "Susi Akselit Oy:n lisätietoja";
   ["send_type"] = "";
   ["email"] = "";
   ["language"] = "";
   ["add_packing_cost"] = 0;
   ["company_number"] = "0016";
   ["add_packing_material"] = 0;
  };
 };
 [18] = {
  ["co"] = {
   ["company_id"] = "HEXA";
   ["country"] = "";
   ["record_id"] = "20050930.001951.ri2ir.co_  zzy000c09f7bd0c503";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.ep1sa.co_  zzy0ae544bd03e1c09";
   ["address"] = "Herkkukatu 16";
   ["text_address"] = "Hexa Tuotteet Oy\
Herkkukatu 16\
40100 Jyväskylä";
   ["way_of_delivery"] = "Posti";
   ["creation_date"] = "2019-02-22";
   ["name"] = "Hexa Tuotteet Oy";
   ["default_sales_person_id"] = "AK";
   ["area"] = "";
   ["last_modification_date"] = "2021-07-09";
   ["post_code"] = "40100";
   ["post_office"] = "Jyväskylä";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = "";
   ["send_type"] = "";
   ["email"] = "info@hermextuotteet.fi";
   ["language"] = "";
   ["add_packing_cost"] = 0;
   ["company_number"] = "0006";
   ["add_packing_material"] = 0;
  };
 };
 [19] = {
  ["co"] = {
   ["company_id"] = "KEUKING";
   ["country"] = "Suomi";
   ["record_id"] = "20050930.001951.ri2is.co_  zzy000c09f7bd0c503";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.eq1sc.co_  zzy0ae544bd03e1c09";
   ["address"] = "Keuruuntie 12 B 8";
   ["text_address"] = "KeuKing Oy\
Keuruuntie 12 B 8\
42700 Keuruu\
Suomi";
   ["way_of_delivery"] = "";
   ["creation_date"] = "2021-03-18";
   ["name"] = "KeuKing Oy";
   ["default_sales_person_id"] = "PM";
   ["area"] = "FI";
   ["last_modification_date"] = "2022-04-01";
   ["post_code"] = "42700";
   ["post_office"] = "Keuruu";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = "";
   ["send_type"] = "";
   ["email"] = "myynti@keuking.fi";
   ["language"] = "";
   ["add_packing_cost"] = 0;
   ["company_number"] = "0007";
   ["add_packing_material"] = 0;
  };
 };
 [20] = {
  ["co"] = {
   ["company_id"] = "PERFECTA";
   ["country"] = "SWEDEN";
   ["record_id"] = "20050930.001951.rj2it.co_  zzy000c09f7bd0c503";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.eq1se.co_  zzy0ae544bd03e1c09";
   ["address"] = "Box 903";
   ["text_address"] = "Perfecta Industrier Ab\
Box 903\
67129 Arvika\
SWEDEN";
   ["way_of_delivery"] = "";
   ["creation_date"] = "2021-04-30";
   ["name"] = "Perfecta Industrier Ab";
   ["default_sales_person_id"] = "PM";
   ["area"] = "";
   ["last_modification_date"] = "2021-08-20";
   ["post_code"] = "67129";
   ["post_office"] = "Arvika";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = " ";
   ["send_type"] = "";
   ["email"] = "";
   ["language"] = "SWE";
   ["add_packing_cost"] = 0;
   ["company_number"] = "0030";
   ["add_packing_material"] = 0;
  };
 };
 [21] = {
  ["co"] = {
   ["company_id"] = "MTALO";
   ["country"] = "";
   ["record_id"] = "20050930.001951.rj2iu.co_  zzy000c09f7bd0c503";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.er1sg.co_  zzy0ae544bd03e1c09";
   ["address"] = "";
   ["text_address"] = "M-talo";
   ["way_of_delivery"] = "";
   ["creation_date"] = "2021-04-30";
   ["name"] = "M-talo";
   ["default_sales_person_id"] = "PM";
   ["area"] = "";
   ["last_modification_date"] = "2021-10-02";
   ["post_code"] = "";
   ["post_office"] = "";
   ["transfer_id"] = "";
   ["type_"] = 721554505728;
   ["info"] = "\"Hello -.åäöÅÄÖ•ƒ€?®†√œøæ™π±≈∆ﬁª†µı¥¢‰¶‡√É∏≠…¸˛‹›≈≤÷◊°¡€\"";
   ["send_type"] = "";
   ["email"] = "";
   ["language"] = "";
   ["add_packing_cost"] = 721554516272;
   ["company_number"] = "0118";
   ["add_packing_material"] = 721554505728;
  };
 };
 [22] = {
  ["co"] = {
   ["company_id"] = "SÄHKÖTUOTE";
   ["country"] = "";
   ["record_id"] = "20050930.001951.rj2iv.co_  zzy000c09f7bd0c503";
   ["name_2"] = "Konttori";
   ["change_id"] = "20211117.123606.es1si.co_  zzy0ae544bd03e1c09";
   ["address"] = "Silmukkatie 1";
   ["text_address"] = "Sähkötuote Oy\
Konttori\
Silmukkatie 1\
65320 Vaasa";
   ["way_of_delivery"] = "Matkahuolto";
   ["creation_date"] = "2021-07-01";
   ["name"] = "Sähkötuote Oy";
   ["default_sales_person_id"] = "ANI";
   ["area"] = "";
   ["last_modification_date"] = "2021-10-30";
   ["post_code"] = "65320";
   ["post_office"] = "Vaasa";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = "";
   ["send_type"] = "";
   ["email"] = "myynti@sahkotuote.com";
   ["language"] = "";
   ["add_packing_cost"] = 0;
   ["company_number"] = "0004";
   ["add_packing_material"] = 3.2370038940107e+16;
  };
 };
 [23] = {
  ["co"] = {
   ["company_id"] = "PAN-OSTON";
   ["country"] = "";
   ["record_id"] = "20071106.122711.oo001.co_  zzy000c09f7bd0c506";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.et1sk.co_  zzy0ae544bd03e1c09";
   ["address"] = "Teollisuustie 1";
   ["text_address"] = "Pan-Oston Oy\
Teollisuustie 1\
15540 Villähde";
   ["way_of_delivery"] = "Noudetaan";
   ["creation_date"] = "2021-08-20";
   ["name"] = "Pan-Oston Oy";
   ["default_sales_person_id"] = "ANI";
   ["area"] = "";
   ["last_modification_date"] = "2021-11-26";
   ["post_code"] = "15540";
   ["post_office"] = "Villähde";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = "";
   ["send_type"] = "";
   ["email"] = "";
   ["language"] = "";
   ["add_packing_cost"] = 0;
   ["company_number"] = "0094";
   ["add_packing_material"] = 2.7303566669709e+16;
  };
 };
 [24] = {
  ["co"] = {
   ["company_id"] = "PULLINMUSIIK";
   ["country"] = "";
   ["record_id"] = "20080110.100434.nf001.co_  zzy00050bfd29f1e02";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.eu1sm.co_  zzy0ae544bd03e1c09";
   ["address"] = "Puukatu 2 F";
   ["text_address"] = "Pullin Musiikki Oy (Finvoice Testi)\
Puukatu 2 F\
00112 Helsinki";
   ["way_of_delivery"] = "";
   ["creation_date"] = "2021-09-12";
   ["name"] = "Pullin Musiikki Oy (Finvoice Testi)";
   ["default_sales_person_id"] = "PM";
   ["area"] = "";
   ["last_modification_date"] = "2021-08-20";
   ["post_code"] = "00112";
   ["post_office"] = "Helsinki";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = "Meidän kanssa on kiva tehdä kauppaa";
   ["send_type"] = "FV";
   ["email"] = "etunimi.sukunimi@pullinmusiikki.fi";
   ["language"] = "";
   ["add_packing_cost"] = 0;
   ["company_number"] = "0095";
   ["add_packing_material"] = 2.7303562371138e+16;
  };
 };
 [25] = {
  ["co"] = {
   ["company_id"] = "SENSORIT";
   ["country"] = "";
   ["record_id"] = "20080110.101958.nf003.co_  zzy00050bfd29f1e02";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.ev1so.co_  zzy0ae544bd03e1c09";
   ["address"] = "Ökylähiökatu 4";
   ["text_address"] = "Sensorit Oy (Finvoice Testi) Pitkä Nimi Joka Ylittä Sallitut 35\
Ökylähiökatu 4\
00122 Helsinki";
   ["way_of_delivery"] = "";
   ["creation_date"] = "2021-09-12";
   ["name"] = "Sensorit Oy (Finvoice Testi) Pitkä Nimi Joka Ylittä Sallitut 35";
   ["default_sales_person_id"] = "AK";
   ["area"] = "";
   ["last_modification_date"] = "2022-04-25";
   ["post_code"] = "00122";
   ["post_office"] = "Helsinki";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = "";
   ["send_type"] = "FV";
   ["email"] = "etunimi.sukunimi@sensorit.fi";
   ["language"] = "";
   ["add_packing_cost"] = 0;
   ["company_number"] = "0096";
   ["add_packing_material"] = 3.3214498231026e+16;
  };
 };
 [26] = {
  ["co"] = {
   ["company_id"] = "RAHTARIT";
   ["country"] = "";
   ["record_id"] = "20090225.162612.ex001.co_  zzy0001d0fbe9b7a0g";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.ew1sq.co_  zzy0ae544bd03e1c09";
   ["address"] = "Sorastajankatu 45";
   ["text_address"] = "Rahtarit Oy\
Sorastajankatu 45\
40100 Jyväskylä";
   ["way_of_delivery"] = "";
   ["creation_date"] = "2021-08-28";
   ["name"] = "Rahtarit Oy";
   ["default_sales_person_id"] = "AK";
   ["area"] = "";
   ["last_modification_date"] = "2021-11-14";
   ["post_code"] = "40100";
   ["post_office"] = "Jyväskylä";
   ["transfer_id"] = "";
   ["type_"] = 1;
   ["info"] = "";
   ["send_type"] = "";
   ["email"] = "";
   ["language"] = "";
   ["add_packing_cost"] = 0;
   ["company_number"] = "0100";
   ["add_packing_material"] = 2.7303489360101e+16;
  };
 };
 [27] = {
  ["co"] = {
   ["company_id"] = "TIIMIAKATEMI";
   ["country"] = "";
   ["record_id"] = "20090326.142416.ke001.co_  zzy0000c29d4a10e02";
   ["name_2"] = "Jyväskylän Ammattikorkeakoulu";
   ["change_id"] = "20211117.123606.ex1ss.co_  zzy0ae544bd03e1c09";
   ["address"] = "Piippukatu 3";
   ["text_address"] = "Tiimiakatemia\
Jyväskylän Ammattikorkeakoulu\
Piippukatu 3\
40100 Jyväskylä";
   ["way_of_delivery"] = "";
   ["creation_date"] = "2021-09-13";
   ["name"] = "Tiimiakatemia";
   ["default_sales_person_id"] = "PM";
   ["area"] = "";
   ["last_modification_date"] = "2021-09-13";
   ["post_code"] = "40100";
   ["post_office"] = "Jyväskylä";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = "";
   ["send_type"] = "";
   ["email"] = "";
   ["language"] = "";
   ["add_packing_cost"] = 0;
   ["company_number"] = "0103";
   ["add_packing_material"] = 2.927381419511e+16;
  };
 };
 [28] = {
  ["co"] = {
   ["company_id"] = "HKI RAUTA";
   ["country"] = "";
   ["record_id"] = "20110120.164026.lt00g.co_  zzy0001b63a2c96405";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.ey1su.co_  zzy0ae544bd03e1c09";
   ["address"] = "Niittytie 3";
   ["text_address"] = "Helsingin Rauta Oy\
Niittytie 3\
53200\9Hyvinkää";
   ["way_of_delivery"] = "Viedään";
   ["creation_date"] = "0000-00-00";
   ["name"] = "Helsingin Rauta Oy";
   ["default_sales_person_id"] = "";
   ["area"] = "";
   ["last_modification_date"] = "2021-05-30";
   ["post_code"] = "53200";
   ["post_office"] = "Hyvinkää";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = "";
   ["send_type"] = "";
   ["email"] = "asd@asd.com";
   ["language"] = "Suomi";
   ["add_packing_cost"] = 0;
   ["company_number"] = "125";
   ["add_packing_material"] = 2.7303579553956e+16;
  };
 };
 [29] = {
  ["co"] = {
   ["company_id"] = "IFS";
   ["country"] = "SWEDEN";
   ["record_id"] = "20100211.124042.77001.co_  o11a0014512401740a";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.ez1sw.co_  zzy0ae544bd03e1c09";
   ["address"] = "Fabriksgatan 3";
   ["text_address"] = "INFLIGHT SERVICE EUROPE AB/Deliveries\
Fabriksgatan 3\
54350 TIBRO\
SWEDEN";
   ["way_of_delivery"] = "KVR";
   ["creation_date"] = "2016-07-03";
   ["name"] = "INFLIGHT SERVICE EUROPE AB/Deliveries";
   ["default_sales_person_id"] = "CL";
   ["area"] = "SE";
   ["last_modification_date"] = "2021-08-05";
   ["post_code"] = "54350";
   ["post_office"] = "TIBRO";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = "4/2014 NIMI MUUTTUNUT  JA LASKUTUSOSOITE";
   ["send_type"] = "";
   ["email"] = "cecilia.minning@inflightservice.se";
   ["language"] = "";
   ["add_packing_cost"] = 4294967296;
   ["company_number"] = "1957";
   ["add_packing_material"] = 9.0076158729258e+15;
  };
 };
 [30] = {
  ["co"] = {
   ["company_id"] = "ACI";
   ["country"] = "";
   ["record_id"] = "20110120.164023.el001.co_  zzy0001b63a2c96405";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.ez1sy.co_  zzy0ae544bd03e1c09";
   ["address"] = "Tekniikantie 17";
   ["text_address"] = "ACI Finland\
Tekniikantie 17\
02150\9Espoo";
   ["way_of_delivery"] = "";
   ["creation_date"] = "0000-00-00";
   ["name"] = "ACI Finland";
   ["default_sales_person_id"] = "ANI";
   ["area"] = "";
   ["last_modification_date"] = "2021-12-12";
   ["post_code"] = "02150";
   ["post_office"] = "Espoo";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = "";
   ["send_type"] = "";
   ["email"] = "";
   ["language"] = "";
   ["add_packing_cost"] = 3;
   ["company_number"] = "100110";
   ["add_packing_material"] = 9.0076931832546e+15;
  };
 };
 [31] = {
  ["co"] = {
   ["company_id"] = "KÄT";
   ["country"] = "";
   ["record_id"] = "20101025.142717.1d008.co_  zzy0001d0fbe9b7a0c";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.f11t0.co_  zzy0ae544bd03e1c09";
   ["address"] = "";
   ["text_address"] = "";
   ["way_of_delivery"] = "";
   ["creation_date"] = "2021-08-08";
   ["name"] = "Käteisasiakas";
   ["default_sales_person_id"] = "";
   ["area"] = "";
   ["last_modification_date"] = "2021-12-16";
   ["post_code"] = "";
   ["post_office"] = "";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = "";
   ["send_type"] = "";
   ["email"] = "";
   ["language"] = "";
   ["add_packing_cost"] = 0;
   ["company_number"] = "0109";
   ["add_packing_material"] = 9.0076502333851e+15;
  };
 };
 [32] = {
  ["co"] = {
   ["company_id"] = "KIITO";
   ["country"] = "";
   ["record_id"] = "20090225.171550.99001.co_  zzy0001d0fbe9b7a0m";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.f11t2.co_  zzy0ae544bd03e1c09";
   ["address"] = "Kirkkokatu 1";
   ["text_address"] = "Kiito Oy\
Kirkkokatu 1\
41200 Saarijärvi";
   ["way_of_delivery"] = "VR";
   ["creation_date"] = "2021-08-28";
   ["name"] = "Kiito Oy";
   ["default_sales_person_id"] = "AK";
   ["area"] = "100";
   ["last_modification_date"] = "2021-10-15";
   ["post_code"] = "41200";
   ["post_office"] = "Saarijärvi";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = "";
   ["send_type"] = "";
   ["email"] = "info@kiito.com";
   ["language"] = "";
   ["add_packing_cost"] = 0;
   ["company_number"] = "0101";
   ["add_packing_material"] = 3.0117959950467e+16;
  };
 };
 [33] = {
  ["co"] = {
   ["company_id"] = "NOMET";
   ["country"] = "Finland";
   ["record_id"] = "20051229.085303.7dux8.co_  a11a001321fbad5b02";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.f21t4.co_  zzy0ae544bd03e1c09";
   ["address"] = "Pukinekatu 1";
   ["text_address"] = "Nomet Oy\
Pukinekatu 1\
FI-33580 Tampere\
Finland";
   ["way_of_delivery"] = "";
   ["creation_date"] = "0000-00-00";
   ["name"] = "Nomet Oy";
   ["default_sales_person_id"] = "KYMÄLÄINEN";
   ["area"] = "";
   ["last_modification_date"] = "2022-05-30";
   ["post_code"] = "FI-33580";
   ["post_office"] = "Tampere";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = "";
   ["send_type"] = "";
   ["email"] = "";
   ["language"] = "";
   ["add_packing_cost"] = 8589934592;
   ["company_number"] = "000000";
   ["add_packing_material"] = 2.9555370778493e+16;
  };
 };
 [34] = {
  ["co"] = {
   ["company_id"] = "1057";
   ["country"] = "Portugal";
   ["record_id"] = "20191021.183644.kk001.co_  zzy01008b1ffd53d09";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.f31t6.co_  zzy0ae544bd03e1c09";
   ["address"] = "";
   ["text_address"] = "Brunswick Portugal\
Portugal";
   ["way_of_delivery"] = "";
   ["creation_date"] = "2023-05-15";
   ["name"] = "Brunswick Portugal";
   ["default_sales_person_id"] = "";
   ["area"] = "";
   ["last_modification_date"] = "2023-05-15";
   ["post_code"] = "";
   ["post_office"] = "";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = "";
   ["send_type"] = "";
   ["email"] = "";
   ["language"] = "";
   ["add_packing_cost"] = 0;
   ["company_number"] = "1057";
   ["add_packing_material"] = 1.6888915222069e+16;
  };
 };
 [35] = {
  ["co"] = {
   ["company_id"] = "7000";
   ["country"] = "";
   ["record_id"] = "20190211.225941.oe003.co_  zzy01008b1ffd53d0a";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.f41t8.co_  zzy0ae544bd03e1c09";
   ["address"] = "";
   ["text_address"] = "Web Order";
   ["way_of_delivery"] = "";
   ["creation_date"] = "2022-09-05";
   ["name"] = "Web Order";
   ["default_sales_person_id"] = "";
   ["area"] = "";
   ["last_modification_date"] = "2022-09-05";
   ["post_code"] = "";
   ["post_office"] = "";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = "";
   ["send_type"] = "";
   ["email"] = "";
   ["language"] = "";
   ["add_packing_cost"] = 12884901888;
   ["company_number"] = "0180";
   ["add_packing_material"] = 2.9273814197207e+16;
  };
 };
 [36] = {
  ["co"] = {
   ["company_id"] = "1000";
   ["country"] = "";
   ["record_id"] = "20190924.134155.e5001.co_  zzy0902b343620e705";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.f51ta.co_  zzy0ae544bd03e1c09";
   ["address"] = "";
   ["text_address"] = "EMEA, VA-Portugal";
   ["way_of_delivery"] = "";
   ["creation_date"] = "2023-04-18";
   ["name"] = "EMEA, VA-Portugal";
   ["default_sales_person_id"] = "";
   ["area"] = "";
   ["last_modification_date"] = "2023-04-18";
   ["post_code"] = "";
   ["post_office"] = "";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = "";
   ["send_type"] = "";
   ["email"] = "";
   ["language"] = "";
   ["add_packing_cost"] = 0;
   ["company_number"] = "1000";
   ["add_packing_material"] = 2.7303579553956e+16;
  };
 };
 [37] = {
  ["co"] = {
   ["company_id"] = "NOREX";
   ["country"] = "";
   ["record_id"] = "20070609.040930.l4lu1.co_  o11a00138f2042bf02";
   ["name_2"] = "";
   ["change_id"] = "20211117.123606.f61tc.co_  zzy0ae544bd03e1c09";
   ["address"] = "Vesikuja 4";
   ["text_address"] = "Oy NOREX COSMETICS Ab\
Vesikuja 4\
FI-02200  ESPOO";
   ["way_of_delivery"] = "";
   ["creation_date"] = "0000-00-00";
   ["name"] = "Oy NOREX COSMETICS Ab";
   ["default_sales_person_id"] = "PV";
   ["area"] = "";
   ["last_modification_date"] = "2013-06-09";
   ["post_code"] = "FI-02200 ";
   ["post_office"] = "ESPOO";
   ["transfer_id"] = "";
   ["type_"] = 0;
   ["info"] = "[NRX]\
";
   ["send_type"] = "";
   ["email"] = "";
   ["language"] = "";
   ["add_packing_cost"] =. 	9.12.2021 	15:19:04 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	15:19:04 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT COUNT(*) FROM company. 	9.12.2021 	15:19:04 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT COUNT(*) FROM company. 	9.12.2021 	15:19:04 	lx 	(7. palvelin)

SELECT COUNT(*) FROM company  INTO :_lx_alExe1
 - result _lx_alExe1 size: 1, first value: 41
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	15:19:04 	_lx_ExecuteSqlNew 	(7. palvelin)

plg4d.selectionToArrayTable: arrName = {
 [1] = "_lx_alExe1";
};. 	9.12.2021 	15:19:04 	lx 	(7. palvelin)

plg4d.selectionToArrayTable: fieldName = {
 [1] = "COUNT(*)";
};. 	9.12.2021 	15:19:04 	lx 	(7. palvelin)

plg4d.selectionToArrayTable: ret = {
 [1] = {
  ["COUNT(*)"] = 17179869580;
 };
};. 	9.12.2021 	15:19:04 	lx 	(7. palvelin)

*** tcp close for sock 84, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 718 bytes ***. 	9.12.2021 	15:21:14 	lx 	(7. palvelin)

closing socket '84'. 	9.12.2021 	15:21:14 	lx 	(7. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	9.12.2021 	15:21:18 	_lx_SERVER 	(4. tbl_ 3)

*** tcp close for sock 82, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	15:21:19 	lx 	(7. palvelin)

closing socket '82'. 	9.12.2021 	15:21:19 	lx 	(7. palvelin)

*** tcp close for sock 83, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	15:21:19 	lx 	(7. palvelin)

closing socket '83'. 	9.12.2021 	15:21:19 	lx 	(7. palvelin)

 -- Server statistics --
answerCount:          4
poll.fd_count:        0
pollCount:            11496
pollInCount:          5
pollOutCount:         0
pollCloseCount:       1
pollErrCount:         0
fd add/remove count:  3/3
totalBytesReceived:   3430
totalBytesSent:       10276. 	9.12.2021 	15:21:19 	lx 	(7. palvelin)

--- server stopped ---. 	9.12.2021 	15:21:19 	lx 	(7. palvelin)

finalizer: free p1 	 cdata<void *>: 0x0137579620. 	9.12.2021 	15:21:19 	lx 	(7. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	15:21:19 	_lx_SERVER 	(7. palvelin)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	15:21:25 	_lx_SERVER 	(7. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	15:21:26 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	15:21:26 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	15:21:26 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	15:21:26 	lx 	(7. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	15:21:26 	lx 	(7. palvelin)

  database connect time: 0.0003 seconds. 	9.12.2021 	15:21:26 	lx 	(7. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	15:21:26 	lx 	(7. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	9.12.2021 	15:21:26 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	15:21:26 	lx 	(7. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01325f6640, size: 400. 	9.12.2021 	15:21:26 	lx 	(7. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	15:21:26 	lx 	(7. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	9.12.2021 	15:21:26 	lx 	(7. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	15:21:26 	lx 	(7. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	9.12.2021 	15:21:26 	lx 	(7. palvelin)

2. Loading plugin: nc/worker/query_worker. 	9.12.2021 	15:21:26 	lx 	(7. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	9.12.2021 	15:21:26 	lx 	(7. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	9.12.2021 	15:21:26 	lx 	(7. palvelin)

All plugins have been loaded. 	9.12.2021 	15:21:26 	lx 	(7. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json. 	9.12.2021 	15:21:26 	lx 	(7. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	9.12.2021 	15:21:26 	lx 	(7. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	15:21:26 	lx 	(7. palvelin)

Mac address: f84d896921dc. 	9.12.2021 	15:21:26 	lx 	(7. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	9.12.2021 	15:21:26 	lx 	(7. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.1.15:5949/
                          https://127.0.0.1:5949/, https://192.168.1.15:5949/. 	9.12.2021 	15:21:26 	lx 	(7. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.1.15:5949/. 	9.12.2021 	15:21:26 	lx 	(7. palvelin)

--- server started in 0.002 seconds, 2021-12-09 15:21:26, used memory 2993.5 kb --- 	 5. 	9.12.2021 	15:21:26 	lx 	(7. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	9.12.2021 	15:21:26 	lx 	(7. palvelin)

Starting to stop tcp server 2, max. delay 1 seconds... 	9.12.2021 	15:23:38 	_lx_SERVER 	(4. tbl_ 3)

*** tcp close for sock 83, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	15:23:38 	lx 	(7. palvelin)

closing socket '83'. 	9.12.2021 	15:23:38 	lx 	(7. palvelin)

*** tcp close for sock 84, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	15:23:38 	lx 	(7. palvelin)

closing socket '84'. 	9.12.2021 	15:23:38 	lx 	(7. palvelin)

 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            9392
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0. 	9.12.2021 	15:23:38 	lx 	(7. palvelin)

--- server stopped ---. 	9.12.2021 	15:23:38 	lx 	(7. palvelin)

finalizer: free p1 	 cdata<void *>: 0x01325f6640. 	9.12.2021 	15:23:38 	lx 	(7. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	15:23:38 	_lx_SERVER 	(7. palvelin)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	15:23:43 	_lx_SERVER 	(7. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	15:23:45 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	15:23:45 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	15:23:45 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	15:23:45 	lx 	(7. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	15:23:45 	lx 	(7. palvelin)

  database connect time: 0.0003 seconds. 	9.12.2021 	15:23:45 	lx 	(7. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	15:23:45 	lx 	(7. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	9.12.2021 	15:23:45 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	15:23:45 	lx 	(7. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01352bc660, size: 400. 	9.12.2021 	15:23:45 	lx 	(7. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	15:23:45 	lx 	(7. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	9.12.2021 	15:23:45 	lx 	(7. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	15:23:45 	lx 	(7. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	9.12.2021 	15:23:45 	lx 	(7. palvelin)

2. Loading plugin: nc/worker/query_worker. 	9.12.2021 	15:23:45 	lx 	(7. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	9.12.2021 	15:23:45 	lx 	(7. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	9.12.2021 	15:23:45 	lx 	(7. palvelin)

All plugins have been loaded. 	9.12.2021 	15:23:45 	lx 	(7. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json. 	9.12.2021 	15:23:45 	lx 	(7. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	9.12.2021 	15:23:45 	lx 	(7. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	15:23:45 	lx 	(7. palvelin)

Mac address: f84d896921dc. 	9.12.2021 	15:23:45 	lx 	(7. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	9.12.2021 	15:23:45 	lx 	(7. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.1.15:5949/
                          https://127.0.0.1:5949/, https://192.168.1.15:5949/. 	9.12.2021 	15:23:45 	lx 	(7. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.1.15:5949/. 	9.12.2021 	15:23:45 	lx 	(7. palvelin)

--- server started in 0.002 seconds, 2021-12-09 15:23:45, used memory 2993.2 kb --- 	 5. 	9.12.2021 	15:23:45 	lx 	(7. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	9.12.2021 	15:23:45 	lx 	(7. palvelin)

Tcp palvelin 2 on jo käynnissä. 	9.12.2021 	15:24:41 	_lx_SERVER 	(4. tbl_ 3)

Starting to stop tcp server 2, max. delay 1 seconds... 	9.12.2021 	15:24:46 	_lx_SERVER 	(4. tbl_ 3)

*** tcp close for sock 84, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	15:24:47 	lx 	(7. palvelin)

closing socket '84'. 	9.12.2021 	15:24:47 	lx 	(7. palvelin)

*** tcp close for sock 85, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	9.12.2021 	15:24:47 	lx 	(7. palvelin)

closing socket '85'. 	9.12.2021 	15:24:47 	lx 	(7. palvelin)

 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            4384
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0. 	9.12.2021 	15:24:47 	lx 	(7. palvelin)

--- server stopped ---. 	9.12.2021 	15:24:47 	lx 	(7. palvelin)

finalizer: free p1 	 cdata<void *>: 0x01352bc660. 	9.12.2021 	15:24:47 	lx 	(7. palvelin)

Tcp palvelin 2 sammutettu. 	9.12.2021 	15:24:47 	_lx_SERVER 	(7. palvelin)

Käynnisteään Tcp palvelin 2. 	9.12.2021 	15:27:29 	_lx_SERVER 	(7. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	15:27:31 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	9.12.2021 	15:27:31 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	9.12.2021 	15:27:31 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	15:27:31 	lx 	(7. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	9.12.2021 	15:27:31 	lx 	(7. palvelin)

  database connect time: 0.0003 seconds. 	9.12.2021 	15:27:31 	lx 	(7. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	9.12.2021 	15:27:31 	lx 	(7. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	9.12.2021 	15:27:31 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	9.12.2021 	15:27:31 	lx 	(7. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x013759f960, size: 400. 	9.12.2021 	15:27:31 	lx 	(7. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	9.12.2021 	15:27:31 	lx 	(7. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	9.12.2021 	15:27:31 	lx 	(7. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	9.12.2021 	15:27:31 	lx 	(7. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	9.12.2021 	15:27:31 	lx 	(7. palvelin)

2. Loading plugin: nc/worker/query_worker. 	9.12.2021 	15:27:31 	lx 	(7. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	9.12.2021 	15:27:31 	lx 	(7. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	9.12.2021 	15:27:31 	lx 	(7. palvelin)

All plugins have been loaded. 	9.12.2021 	15:27:31 	lx 	(7. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json. 	9.12.2021 	15:27:31 	lx 	(7. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	9.12.2021 	15:27:31 	lx 	(7. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	9.12.2021 	15:27:31 	lx 	(7. palvelin)

Mac address: f84d896921dc. 	9.12.2021 	15:27:31 	lx 	(7. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	9.12.2021 	15:27:31 	lx 	(7. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.1.15:5949/
                          https://127.0.0.1:5949/, https://192.168.1.15:5949/. 	9.12.2021 	15:27:31 	lx 	(7. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.1.15:5949/. 	9.12.2021 	15:27:31 	lx 	(7. palvelin)

--- server started in 0.002 seconds, 2021-12-09 15:27:31, used memory 3016.7 kb --- 	 5. 	9.12.2021 	15:27:31 	lx 	(7. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	9.12.2021 	15:27:31 	lx 	(7. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-09 15:27:42
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 504
Content-Uncompressed-Length: 584

LZ4. 	9.12.2021 	15:27:42 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	15:27:42 	lx 	(7. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	9.12.2021 	15:27:42 	lx 	(7. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	9.12.2021 	15:27:42 	lx 	(7. palvelin)

  database connect time: 0.0001 seconds. 	9.12.2021 	15:27:42 	lx 	(7. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	9.12.2021 	15:27:42 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	15:27:42 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:dsql.sqlExecuteUnsafe'
    SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	15:27:42 	lx 	(7. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1
 - original query: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_co.json'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	15:27:42 	_lx_ExecuteSqlNew 	(7. palvelin)

array4dToArrayTable option = {
 ["trace"] = false;
 ["field"] = {
  [1] = "name_id";
  [2] = "text_value";
 };
};. 	9.12.2021 	15:27:42 	lx 	(7. palvelin)

 1. answer time: 00:00:00.00086
  
SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'. 	9.12.2021 	15:27:42 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/call_4d_function'. 	9.12.2021 	15:27:42 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	15:27:42 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.... 	9.12.2021 	15:27:42 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.... 	9.12.2021 	15:27:42 	lx 	(7. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.record_id IS NOT NULL LIMIT 2000 INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.name, co.name_2, co.country, co.area, co.transfer_id, co.change_id, co.text_address, co.company_number, co.default_sales_person_id, co.email, co.address, co.post_code, co.post_office, co.send_type, co.way_of_delivery, co.language, co.add_packing_cost, co.add_packing_material, co.info, co.creation_date, co.record_id, co.last_modification_date, co.type_ FROM company co  WHERE co.record_id IS NOT NULL  LIMIT 2000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14,:_lx_atExe15,:_lx_atExe16,:_lx_atExe17,:_lx_alExe1,:_lx_alExe2,:_lx_atExe18,:_lx_adExe1,:_lx_atExe19,:_lx_adExe2,:_lx_alExe3
 - result _lx_atExe1 size: 41, first value: 'ELSOINTU'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	15:27:42 	_lx_ExecuteSqlNew 	(7. palvelin)

array4dToArrayTable option = {
 ["trace"] = false;
 ["field"] = {
  [1] = "co.company_id";
  [2] = "co.name";
  [3] = "co.name_2";
  [4] = "co.country";
  [5] = "co.area";
  [6] = "co.transfer_id";
  [7] = "co.change_id";
  [8] = "co.text_address";
  [9] = "co.company_number";
  [10] = "co.default_sales_person_id";
  [11] = "co.email";
  [12] = "co.address";
  [13] = "co.post_code";
  [14] = "co.post_office";
  [15] = "co.send_type";
  [16] = "co.way_of_delivery";
  [17] = "co.language";
  [18] = "co.add_packing_cost";
  [19] = "co.add_packing_material";
  [20] = "co.info";
  [21] = "co.creation_date";
  [22] = "co.record_id";
  [23] = "co.last_modification_date";
  [24] = "co.type_";
 };
};. 	9.12.2021 	15:27:42 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	15:27:42 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT COUNT(*) FROM company. 	9.12.2021 	15:27:42 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT COUNT(*) FROM company. 	9.12.2021 	15:27:42 	lx 	(7. palvelin)

SELECT COUNT(*) FROM company  INTO :_lx_alExe1
 - result _lx_alExe1 size: 1, first value: 41
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	15:27:42 	_lx_ExecuteSqlNew 	(7. palvelin)

array4dToArrayTable option = {
 ["trace"] = false;
 ["field"] = {
  [1] = "COUNT(*)";
 };
};. 	9.12.2021 	15:27:42 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	15:28:54 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co... 	9.12.2021 	15:28:54 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co... 	9.12.2021 	15:28:54 	lx 	(7. palvelin)

Sama kenttä on määritelty useammin kuin kerran, kenttä: Nimi, index: 13. 	9.12.2021 	15:28:55 	_arr apCheck 	(7. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.record_id IS NOT NULL LIMIT 2000 INTO :_lx_atExe1
 - original query: SELECT co.name, co.company_number, co.email, co.record_id, co.language, co.invoice_company_id, co.info, co.creation_date, co.country, co.terms_of_payment_id, co.change_id, co.sales_order_code_id, co.name, co.name_2, co.post_code FROM company co  WHERE co.record_id IS NOT NULL  LIMIT 2000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_adExe1,:_lx_atExe8,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13,:_lx_atExe14
 - result _lx_atExe1 size: 41, first value: 'Elävä Sointu Oy'
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	15:28:55 	_lx_ExecuteSqlNew 	(7. palvelin)

array4dToArrayTable option = {
 ["trace"] = false;
 ["field"] = {
  [1] = "co.name";
  [2] = "co.company_number";
  [3] = "co.email";
  [4] = "co.record_id";
  [5] = "co.language";
  [6] = "co.invoice_company_id";
  [7] = "co.info";
  [8] = "co.creation_date";
  [9] = "co.country";
  [10] = "co.terms_of_payment_id";
  [11] = "co.change_id";
  [12] = "co.sales_order_code_id";
  [13] = "co.name";
  [14] = "co.name_2";
  [15] = "co.post_code";
 };
};. 	9.12.2021 	15:28:55 	lx 	(7. palvelin)

- rest call: organzation 'demo-4d-0', url '/rest/nc/query/sql4d'. 	9.12.2021 	15:28:55 	lx 	(7. palvelin)

  - sql execute unsafe 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT COUNT(*) FROM company. 	9.12.2021 	15:28:55 	lx 	(7. palvelin)

  - sql execute 'plg4d/plg4d', query: 'new:form/core/nc-list-form/query.json'
    SELECT COUNT(*) FROM company. 	9.12.2021 	15:28:55 	lx 	(7. palvelin)

SELECT COUNT(*) FROM company  INTO :_lx_alExe1
 - result _lx_alExe1 size: 1, first value: 41
 - query name: plg4d.executeSqlIn4d. 	9.12.2021 	15:28:55 	_lx_ExecuteSqlNew 	(7. palvelin)

array4dToArrayTable option = {
 ["trace"] = false;
 ["field"] = {
  [1] = "COUNT(*)";
 };
};. 	9.12.2021 	15:28:55 	lx 	(7. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 715 bytes ***. 	9.12.2021 	15:56:33 	lx 	(7. palvelin)

closing socket '87'. 	9.12.2021 	15:56:33 	lx 	(7. palvelin)

